function value = year_is_embolismic_eg_lunar ( y )

%*****************************************************************************80
%
%% year_is_embolismic_eg_lunar(): TRUE if the Egyptian Lunar year was embolismic.
%
%  Discussion:
%
%    This is just a "fake" function, which does repeat every 25 years,
%    and has 9 embolismic and 16 common years in that cycle, but with
%    a pattern I just made up for now.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 September 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, the year.
%
%  Output:
%
%    logical VALUE, TRUE if the year was embolismic.
%
  y2 = mod ( y - 1, 25 );

  if ( mod ( y2, 3 ) == 0 )
    value = 1;
  else
    value = 0;
  end

  return
end
