function i4_moebius_test ( )

%*****************************************************************************80
%
%% I4_MOEBIUS_TEST tests I4_MOEBIUS.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    31 May 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_MOEBIUS_TEST:\n' );
  fprintf ( 1, '  I4_MOEBIUS evaluates the Moebius function:\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '         N      Exact         I4_MOEBIUS(N)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, n, c1 ] = moebius_values ( n_data );

    if ( n_data == 0 )
      break
    end

    c2 = i4_moebius ( n );

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

  end

  return
end
