function value = f4 ( i )

%*****************************************************************************80
%
%% f4() is the iteration function for example 4.
%
%  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 ( 31421 * i + 6927, 65536 );

  return
end
