OFFSET
2,1
COMMENTS
The orbit (or trajectory) under A125256 appears to end in the cycle 5 -> 13 -> 5 -> etc. for any initial value n.
LINKS
Ray Chandler, Table of n, a(n) for n = 2..20001
MATHEMATICA
Table[Max[NestWhileList[SelectFirst[FactorInteger[#^2+1][[All, 1]], OddQ]&, n, #!=13&]], {n, 2, 60}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 04 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Nov 06 2017
STATUS
approved