function derange_enum3_test ( )

%*****************************************************************************80
%
%% DERANGE_ENUM3_TEST tests DERANGE_ENUM3.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'DERANGE_ENUM3_TEST\n' );
  fprintf ( 1, '  DERANGE_ENUM3 counts derangements.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  N    # of derangements\n' );
  fprintf ( 1, '\n' );

  for i = 0 : n
    fprintf ( 1, '  %8d  %8d\n', i, derange_enum3(i) );
  end

  return
end
