function determ = carry_determinant ( n, alpha )

%*****************************************************************************80
%
%% carry_determinant() returns the determinant of the CARRY matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix.
%
%    integer ALPHA, the numeric base being used in the addition.
%
%  Output:
%
%    real DETERM, the determinant.
%
  power = ( n * ( n - 1 ) ) / 2;
  determ = 1.0 / alpha^power;

  return
end
