(Incidentally a related method is know as "pollard's rho" and used to factor integers.)
"The rho algorithm is based on Floyd's cycle-finding algorithm [...]" (which can be found at http://en.wikipedia.org/wiki/Floyd%27s_cycle-finding_algorit...)
(Incidentally a related method is know as "pollard's rho" and used to factor integers.)