OFFSET
0,6
COMMENTS
2^(2^n) + 1 belongs to A019434 if and only if a(n) = 0.
REFERENCES
M. Krizek, F. Luca, L. Somer, 17 Lectures on Fermat Numbers: From Number Theory to Geometry, CMS Books in Mathematics, vol. 9, Springer-Verlag, New York, 2001, p. 6.
LINKS
Wikipedia, Fermat number
PROG
(PARI) a(n) = {my(fn = 2^(2^n) + 1); if (isprime(fn), return (0)); my(spf = factor(fn)[1, 1]); (fn/spf + spf)/2; } \\ Michel Marcus, Jun 07 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, May 12 2015
STATUS
approved