mcnuggets
mcnuggets,
an Octave code which
counts M(N), the number of ways a given number N of Chicken
McNuggets can be assembled, given that they are only available
in packages of 6, 9, and 20.
Licensing:
The information on this web page is distributed under the MIT license.
Languages:
mcnuggets is available in
a MATLAB version and
an Octave version and
a Python version.
Related Programs:
mcnuggets_test
octave_combinatorics,
an Octave code which
considers a variety of problems in combinatorics involving
counting, combinations, permutations, and so on.
Reference:
-
Nick Berry,
Chicken Nugget Numbers,
https://datagenetics.com/blog/august22015/index.html
Posted 02 August 2015.
-
John D Cook,
The Chicken McNugget Monoid,
https://www.johndcook.com/blog/2022/10/10/mcnugget-monoid/
10 October 2022.
Source Code
-
mcnugget_number_values.m,
returns some sample values of M(N), the number of ways of getting
N Chicken McNuggets;
-
mcnugget_ways.m,
returns the number of ways of getting
N Chicken McNuggets for 0 <= N <= NMAX;
-
mcnugget_solvable.m,
determines whether there is any solution of the McNuggets problem
for a given number N.
Last revised on 24 December 2022.