function i4_partition_distinct_count_test ( )

%*****************************************************************************80
%
%% i4_partition_distinct_count_test() tests i4_partition_distinct_count().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 October 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_partition_distinct_count_test():\n' );
  fprintf ( 1, '  i4_partition_distinct_count() computes\n' );
  fprintf ( 1, '  the number of partitions of an integer\n' );
  fprintf ( 1, '  into distinct parts.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '     N       Exact F    Q(N)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, n, c ] = partition_distinct_count_values ( n_data );

    if ( n_data == 0 )
      break
    end

    c2 = i4_partition_distinct_count ( n );

    fprintf ( 1, '  %8d  %8d  %8d\n', n, c, c2 );

  end

  return
end

