Chicken McNuggets

August 7, 2006 – 4:13 pm

McDonald’s sells its Chicken McNuggets in groups of 6, 9, and 20. What is the largest number of McNuggets you can’t buy?

Solution: I’m sure there’s a simpler solution to this, but here goes. Let x_n=6n, which is an amount we can buy using only boxes of 6 nuggets. Let’s see how we can ‘fill in the gaps’ between two consecutive x_n, x_{n+1} by removing some 6’s and replacing them with 9’s and 20’s:

  • x_n-3*6+20=x_n+2 (condition: n>=3)
  • x_n-6+9=x_n+3 (n>=1)
  • x_n+2*(-3*6+20)=x_n+4 (n>=6)
  • x_n+(-3*6+20)+(-6+9)=x_n+5 (n>=4)
  • x_n+2*(-3*6+20)+(-6+9)-6=x_n+1 (n>=8)

Note that only the first two options are original — the rest are simply combinations of the first two. So, if n is large enough (n >= 8 ), we can fill in all the gaps between x_n and x_{n+1} by removing some boxes of 6 nuggets, and replacing them with various combinations of 9 and 20 nuggets.

This means that, starting with x_8=6*8=48, we can buy any number of nuggets. What about the numbers between x_7=42 and x_8=48? According to the list above, given n=7 we can create all the numbers in this range except, perhaps, x_7+1=43.

It’s easy to see that there’s indeed no way to buy 43 nuggets: 43 itself isn’t divisable by 3, so you can’t get 43 with a combination of 6’s and 9’s. So you must use either one or two boxes of 20. But 43-20=23 is again not divisable by 3, and 43-20*2=3 is less than 6.

Hence, 43 is the largest amount of nuggets you can’t buy at McDonald’s.

  1. One Response to “Chicken McNuggets”

  2. cool! :)

    By Danny on Aug 7, 2006

Post a Comment