function p3 = perm1_multipy ( p1, p2 )

%*****************************************************************************80
%
%% permutation_multiply() "multiplies" two permutations.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    14 September 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer P1(N), P2(N), the factors.
%
%  Output:
%
%    integer P3(N), the product.
%
  p3 = p2 ( p1 );

  return
end
