function num = unicycle_enum ( n )

%*****************************************************************************80
%
%% unicycle_enum() enumerates the unicycles.
%
%  Discussion:
%
%    Each standard sequence corresponds to a unique unicycle.  Since the
%    first element of a standard sequence is always 1, the number of standard
%    sequences, and hence the number of unicycles, is (n-1)!.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 January 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the unicyle.
%
%  Output:
%
%    integer NUM, the number of unicycles.
%
  if ( 1 <= n )
    num = factorial ( n - 1 );
  else
    num = 0;
  end

  return
end
