Solving Diophantine Equations: Find Largest Number of Chicken Nuggets

  • Thread starter Thread starter InsaneMind
  • Start date Start date
InsaneMind
Messages
1
Reaction score
0
So the other day I was asked a question about a problem by a friend. Having not been active in a math class in a VERY VERY long time I struggled with it at first... I believe it was worded as such...

Nick goes to McDonald's to buy chicken nuggets. Nick can only buy chicken nuggets in sets of 6, 9 and 20. After a bit, nick tries to figure out what's the largest number of chicken nuggets nick "cannot" buy. Help nick find out his answer, you can use any method you like (including guess and check)


Now originally I recognized that the problem is...

6a + 9b + 20c = n

Which I remembered as a diophantine equation, however I couldn't remember the formula to solve the problem. So I began using the guess and check method and arrived at the appropriate answer...checked his teachers guide to verify and then showed him how I did my guess and check method. His teacher gave out points to students whether they attempted the problem or not as long as they provided substantial work into it and/or arrived at an answer. (Basically as long as he tried he would get the extra-credit...I wish I had that teacher back in the day).


My question is...what's the proper formula for finding the answer?


The answer was 43
 
Physics news on Phys.org
I read about this problem some time back before. I don't think it has anything to do with Diophantine equation, it's more of modulo arithmetic. Except I can't recall the reasoning too.
 
The world of 2\times 2 complex matrices is very colorful. They form a Banach-algebra, they act on spinors, they contain the quaternions, SU(2), su(2), SL(2,\mathbb C), sl(2,\mathbb C). Furthermore, with the determinant as Euclidean or pseudo-Euclidean norm, isu(2) is a 3-dimensional Euclidean space, \mathbb RI\oplus isu(2) is a Minkowski space with signature (1,3), i\mathbb RI\oplus su(2) is a Minkowski space with signature (3,1), SU(2) is the double cover of SO(3), sl(2,\mathbb C) is the...