Ask your own question, for FREE!
Mathematics 20 Online
OpenStudy (anonymous):

A certain popular fast-food chain sells its trademark chicken nuggets in packs of 6, 9, or 20 (or at least it used to). Thus, it is possible for one to purchase 15 nuggets by buying a pack of 6 and another pack of 9 nuggets, or 60 nuggets by buying 3 packs of 20 nuggets or 10 packs of 6 nuggets. However, it is not possible to buy 7 nuggets as no combination of packs of nuggets provides that amount of nuggets. What is the largest amount of nuggets that cannot be purchased?

OpenStudy (anonymous):

write a python program lol

OpenStudy (anonymous):

why don't you solve it in Java?

OpenStudy (anonymous):

i solved in python

OpenStudy (anonymous):

so what's the answer?

OpenStudy (anonymous):

i don't remember something about 40 :D

OpenStudy (anonymous):

solve it again :-D

OpenStudy (anonymous):

43 if it's same program from mit ocw

OpenStudy (anonymous):

alright.... so it turns out that the happy meals of this particular can contain packs of 4 nuggets. With this new information, what is the largest amount of nuggets that you cannot buy?

OpenStudy (anonymous):

11

OpenStudy (anonymous):

right!

OpenStudy (anonymous):

no

OpenStudy (anonymous):

no?

OpenStudy (anonymous):

idk if its true but my code is still incorrect :D

OpenStudy (anonymous):

incorrect? how?

OpenStudy (anonymous):

my code is incorrect and i fixed it now and answer is 11

OpenStudy (anonymous):

i made mistake in my code and i got 11 even with mistake

OpenStudy (anonymous):

now i fixed it and i still get 11 so it's correct

OpenStudy (anonymous):

what kind of mistake? I did that exercise a long time ago and I can't understand my code anymore :(

OpenStudy (anonymous):

because I didn't comment it :-D

OpenStudy (anonymous):

that's why u should always write comments even if "code is explaining himself" :D

OpenStudy (anonymous):

Can u tel d answr without code???? as u told that answr is 11 nuggets,how can i get 10?12?13?14?................nuggets?

OpenStudy (anonymous):

you dont need to get 10 12 13 14 you need to get answer from given ammount of nugget packs and you can get answer but idk how

OpenStudy (anonymous):

What is the largest amount of nuggets that cannot be purchased? so we can't purchase either 10 r 12 r 13 r14....................

OpenStudy (anonymous):

you don't understand problem...

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!