function value = f2 ( i )

%*****************************************************************************80
%
%% f2() is the iteration function for example 2.
%
%  Discussion:
%
%    This function has a cycle
%
%    3, 67, 35, 51, 43, 11, 27, 19, 59, of length 9
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 June 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer I, the argument of the function.
%
%  Output:
%
%    integer VALUE, the value of the function.
%
  value = mod ( 22 * i + 1, 72 );

  return
end
