login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A294657 Largest number in the orbit of n under iteration of the map A125256: x -> smallest odd prime divisor of n^2+1. 4
13, 13, 17, 13, 37, 13, 13, 421, 5101, 1861, 13, 13, 197, 113, 257, 17, 18, 16381, 401, 21, 22, 23, 577, 313, 677, 27, 28, 421, 30, 31, 32, 33, 34, 613, 1297, 37, 38, 761, 1601, 421, 42, 43, 44, 1013, 421, 47, 48, 1201, 421, 1301, 52, 53, 2917, 55, 3137, 57, 58, 1515541, 60 (list; graph; refs; listen; history; text; internal format)
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
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 *)
PROG
(PARI) A294657(n, S=[n])={while(#S<#S=setunion(S, [n=A125256(n)]), ); vecmax(S)}
CROSSREFS
Cf. A125256, A294656 (size of the orbit).
Sequence in context: A291569 A290854 A254928 * A201773 A072519 A060362
KEYWORD
nonn
AUTHOR
M. F. Hasler, Nov 06 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 06:14 EDT 2024. Contains 371964 sequences. (Running on oeis4.)