function part_table_test ( )

%*****************************************************************************80
%
%% PART_TABLE_TEST tests PART_TABLE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    23 December 2015
%
%  Author:
%
%    John Burkardt
%
  maxn = 10;
  maxpart = 5;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'PART_TABLE_TEST\n' );
  fprintf ( 1, '  PART_TABLE tabulates partitions of N.\n' );

  offset = 1;

  p = part_table ( maxn );

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

  for i = 0 : maxn
    fprintf ( 1, '%5d%5d\n', i, p(i+offset) );
  end

  return
end
