OFFSET
1,1
COMMENTS
Least prime factors of a(n): 7, 5, 313, 5, 1199765113, 5, 233, 5, 101, 5, 2951438416261, 5, 457, 5, 373, 5, 89, 5, 101, 5.
FORMULA
a(n) = (a(n-1)^2 + 1) / 2.
EXAMPLE
25^2 = 24^2 + 7^2, 313^2 = 312^2 + 25^2.
MATHEMATICA
NestList[(#^2+1)/2&, 7, 8]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 11 2013
EXTENSIONS
b(11) = 2951438416261 (the least prime factor of a(11)) from Jon E. Schoenfield and Charles R Greathouse IV
STATUS
approved