function x = r8ltt_sl ( n, a, b )

%*****************************************************************************80
%
%% R8LTT_SL solves a linear system A*x=b with an R8LTT matrix.
%
%  Discussion:
%
%    The R8LTT storage format is used for an N by N lower triangular Toeplitz
%    matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 November 2015
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the order of the matrix.
%
%    Input, real A(N), the matrix.
%
%    Input, real B(N), the right hand side.
%
%    Output, real X(N), the solution vector.
%
  x(1:n) = b(1:n);

  for j = 1 : n
    x(j) = x(j) / a(1);
    for i = j + 1 : n
      x(i) = x(i) - a(i-j+1) * x(j);
    end
  end

  return
end
