function mcnugget_solvable_test ( )

%*****************************************************************************80
%
%% mcnugget_solvable_test() tests mcnugget_solvable().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 September 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'mcnugget_solvable_test():\n' );
  fprintf ( 1, '  mcnugget_solvable() reports whether you can order exactly\n' );
  fprintf ( 1, '  N chicken McNuggets when they only come in packages\n' );
  fprintf ( 1, '  of 6, 9, and 20.\n' );

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

  a = [ 6, 9, 20 ];

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

  return
end

