function x = r8utt_sl ( n, a, b )

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

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

  return
end
