03-Nov-2022 16:10:56 mcnuggets_diophantine_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 mcnuggets_diophantine() lists the ways that you can get exact N chicken McNuggets when they only come in packages of 6, 9, and 20. N M(N) N = 30, Number of ways = 2 2 2 0 5 0 0 N = 31, Number of ways = 0 N = 32, Number of ways = 1 2 0 1 N = 33, Number of ways = 2 1 3 0 4 1 0 N = 34, Number of ways = 0 N = 35, Number of ways = 1 1 1 1 N = 36, Number of ways = 3 0 4 0 3 2 0 6 0 0 N = 37, Number of ways = 0 N = 38, Number of ways = 2 0 2 1 3 0 1 N = 39, Number of ways = 2 2 3 0 5 1 0 N = 40, Number of ways = 1 0 0 2 N = 41, Number of ways = 1 2 1 1 N = 42, Number of ways = 3 1 4 0 4 2 0 7 0 0 N = 43, Number of ways = 0 N = 44, Number of ways = 2 1 2 1 4 0 1 N = 45, Number of ways = 3 0 5 0 3 3 0 6 1 0 mcnuggets_diophantine_test(): Normal end of execution. 03-Nov-2022 16:10:56