function x = ring_adj_null_right ( m, n )

%*****************************************************************************80
%
%% RING_ADJ_NULL_RIGHT returns a right null vector of the RING_ADJ matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 November 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the order of the matrix.
%
%  Output:
%
%    real X(N,1), the null vector.
%
  if ( mod ( n, 4 ) ~= 0 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'RING_ADJ_NULL_RIGHT - Fatal error!\n' );
    fprintf ( 1, '  N must be a multiple of 4.\n' );
    error ( 'RING_ADJ_NULL_RIGHT - Fatal error!' );
  end

  x = zeros ( n, 1 );

  x(1:4:n,1) = + 1.0;
  x(2:4:n,1) = + 1.0;
  x(3:4:n,1) = - 1.0;
  x(4:4:n,1) = - 1.0;

  return
end
