This commit is contained in:
2023-09-20 09:53:04 -04:00
parent bc46c80b02
commit f8006eb17c
10 changed files with 146 additions and 0 deletions

View File

@ -0,0 +1,23 @@
McNugget Numbers
==================
In the 1980s, while eating McDonald's with his son, mathematician Henri Picciotto reasoned [McNugget Numbers](http://en.wikipedia.org/wiki/Coin_problem#McNugget_numbers).
At McDonalds Restaurants at the time, Chicken McNugget meals were available in sizes of 6 McNuggets, 9 McNuggets, or 20 McNuggets.
A number is a McNugget number if it can be the sum of the number of McNuggets purchased in an order before eating any of them.
Some Examples:
20 + 6 == 26
9 + 9 + 9 + 9 + 9 == 45
20 + 9 + 6 == 35
...etc
###Task 1
Determine all numbers that are not McNugget numbers using 1980s order sizes - `6`, `9` and `20`.
###McNugget 2015 Redux
Determine all numbers that are not McNugget numbers using today's order sizes - `4`, `6`, `10`, `20` and `40`.

View File