McNugget numbers

Chicken McNuggets used to come in boxes of 6, 9 and 20. You could buy 15 (6 + 9) or 26 (6 + 20), but not 43, however you mixed the boxes. 43 is the largest count you can't buy, and past it every count works. Below, each count you can buy is a node, with an arrow from each smaller count it's one box more than.

Boxes of 6, 9 and 20, counting up to 50 nuggets, showing the way with the fewest boxes to each count.

Why it stops at 43

Look at 44 to 49: 44 = 20 + 9 + 9 + 6, 45 = 9 + 9 + 9 + 9 + 9, and so on. That's six counts in a row, so adding boxes of 6 to them reaches 50 to 55, then 56 to 61, and every count after. Once some count and the next five can be bought, nothing above them is missing. The largest count you can't buy is the Frobenius number of the box sizes, and for 6, 9 and 20 it's 43.

Things to try

How it's built

Ported from the McNugget demo in wigglystuff.