function x = r8ut_slt ( n, a, b )

%*****************************************************************************80
%
%% r8ut_slt() solves a linear system A'*x=b with an R8UT matrix.
%
%  Discussion:
%
%    The R8UT storage format is used for an M by N upper triangular 
%    matrix.  The format stores all M*N entries, even those which are zero.
%
%    No factorization of the upper triangular matrix is required.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 August 2015
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the matrix.
%
%    real A(N,N), the R8UT matrix.
%
%    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(j,j);
    for i = j+1 : n
      x(i) = x(i) - x(j) * a(j,i);
    end
  end

  return
end
