function a = helmert2_inverse ( n, x )

%*****************************************************************************80
%
%% HELMERT2_INVERSE returns the inverse of the HELMERT2 matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 October 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of A.
%
%    real X(N), the vector that defines the first row.
%
%  Output:
%
%    real A(N,N), the inverse matrix.
%
  a = ( helmert2_matrix ( n, x ) )';

  return
end
