function perm_fixed_enum_test ( )

%*****************************************************************************80
%
%% perm_fixed_enum_test() tests perm_fixed_enum().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'perm_fixed_enum_test():\n' );
  fprintf ( 1, '  perm_fixed_enum() enumerates the permutations\n' );
  fprintf ( 1, '  of N objects that leave M unchanged.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  For this test, N = %d\n', n );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  M    F(N,M)\n' );
  fprintf ( 1, '\n' );

  for m = 0 : n

    fnm = perm_fixed_enum ( n, m );
    fprintf ( 1, '  %2d  %8d\n', m, fnm );

  end

  return
end
