function perm1_mul_test ( )

%*****************************************************************************80
%
%% perm1_mul_test() tests perm1_mul().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 July 2021
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'perm1_mul_test():\n' );
  fprintf ( 1, '  perm1_mul() multiplies two permutations of (1,...,N).\n' );

  p1 = perm1_random ( n );
  p2 = perm1_random ( n );

  perm1_print ( n, p1, '  Permutation P1:' );

  perm1_print ( n, p2, '  Permutation P2:' );

  p3 = perm1_mul ( n, p1, p2 );

  perm1_print ( n, p3, '  Product permutation:' );

  return
end
