function [ L, U ] = fibonacci2_lu ( n )

%*****************************************************************************80
%
%% fibonacci2_lu() returns the LU factors of the fibonacci2 matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 October 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix.
%
%  Output:
%
%    real L(N,N), U(N,N), the LU factors.
%
  L = zeros ( n, n );
  L(1,2) = 1.0;
  L(2,1) = 1.0;
  for i = 3 : n
    L(i,i-1) = 1.0;
    L(i,i) = 1.0;
  end

  U = eye ( n, n );
  U(1,2) = 1.0;

  return
end

