function mcnugget_ways_count_test ( )

%*****************************************************************************80
%
%% mcnugget_ways_count_test() tests mcnugget_ways_count().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 October 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'mcnugget_ways_count_test():\n' );
  fprintf ( 1, '  mcnugget_ways_count() counts the number of ways that you can\n' );
  fprintf ( 1, '  get exact N chicken McNuggets when they only come in packages\n' );
  fprintf ( 1, '  of 6, 9, and 20.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '    N  M(N)\n' );
  fprintf ( 1, '\n' );

  a = [ 6, 9, 20 ];

  for b = 0 : 100
    m = mcnugget_ways_count ( a, b );
    fprintf ( 1, '  %3d  %2d\n', b, m );
  end

  return
end

