function npart_table_test ( )

%*****************************************************************************80
%
%% NPART_TABLE_TEST tests NPART_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, 'NPART_TABLE_TEST\n' );
  fprintf ( 1, '  NPART_TABLE tabulates partitions\n' );
  fprintf ( 1, '  of N with NPART parts;\n' );

  offset = 1;

  p = npart_table ( maxn, maxpart );

  fprintf ( 1, ' \n' );
  fprintf ( 1, '    I P(I,0) P(I,1) P(I,2) P(I,3) P(I,4) P(I,5)\n' );
  fprintf ( 1, ' \n' );

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

  return
end
