function ngray = gray_code_enum ( n )

%*****************************************************************************80
%
%% gray_code_enum() enumerates the Gray codes on N digits.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 January 2011
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of digits in each element.
%    N must be nonnegative.
%
%  Output:
%
%    integer NGRAY, the number of distinct elements.
%
  ngray = 2^n;

  return
end
