function perrin_test ( )

%*****************************************************************************80
%
%% perrin_test() tests perrin().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'perrin_test():\n' );
  fprintf ( 1, '  perrin() computes the Perrin numbers.\n' );
  fprintf ( 1, '\n' );

  p = perrin ( n );

  fprintf ( 1, '\n' );
  fprintf ( 1, '     N        P(N)\n' );
  fprintf ( 1, '\n' );

  for i = 1 : n
    fprintf ( 1, '  %4d  %8d\n', i-1, p(i) );
  end

  return
end
