function n = permutation_order ( a )

%*****************************************************************************80
%
%% permutation_order() returns the order of a permutation.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    14 September 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer A(N), the permutation.
%
%  Output:
%
%    integer N, the order of the permutation.
%
  n = length ( a );

  return
end
