function a = moler3_llt ( n )

%*****************************************************************************80
%
%% moler3_llt() returns the Cholesky factor of the MOLER3 matrix.
%
%  Discussion:
%
%    This is an instance of the ANTISUMMATION matrix.
%
%  Example:
%
%    N = 5
%
%    1  0  0  0  0
%   -1  1  0  0  0
%   -1 -1  1  0  0
%   -1 -1 -1  1  0
%   -1 -1 -1 -1  1
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%  Output:
%
%    real A(N,N), the matrix.
%
  for i = 1 : n
    a(i,1:i-1) = -1.0;
    a(i,i)     =  1.0;
    a(i,i+1:n) =  0.0;
  end

  return
end
