function determ = lotkin_determinant ( n )

%*****************************************************************************80
%
%% lotkin_determinant() returns the determinant of the LOTKIN matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%  Output:
%
%    real DETERM, the determinant.
%
  delta = 1.0;

  for i = 2 : n
    delta = - nchoosek ( 2 * i - 2, i - 2 ) * nchoosek ( 2 * i - 2, i - 1 ) ...
      * ( 2 * i - 1 ) * delta;
  end

  determ = 1.0 / delta;

  return
end
