function lambda = magic_eigenvalues ( n )

%*****************************************************************************80
%
%% magic_eigenvalues returns the eigenvalues of the MAGIC matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 December 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix.
%
%  Output:
%
%    real LAMBDA, an eigenvalue.
%
  lambda = n * ( n^2 + 1 ) / 2.0;

  return
end
