function x = pei_eigen_right ( alpha, n )

%*****************************************************************************80
%
%% PEI_EIGEN_RIGHT returns the right eigenvectors of the PEI matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 November 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real ALPHA, the scalar that defines A.
%
%    integer N, the order of the matrix.
%
%  Output:
%
%    real X(N,N), the right eigenvectors.
%
  x = zeros ( n, n );

  for j = 1 : n - 1
    x(  1,j) = +1.0;
    x(j+1,j) = -1.0;
  end

  j = n;
  x(1:n,j) = 1.0;

  return
end
