OFFSET
1,2
COMMENTS
a(n)=1 or a(n)=0 mod(5) or a(n) is a prime congruent to 1 mod(4).
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
MAPLE
MATHEMATICA
Table[GCD[2^n + 1, n^2 + 1], {n, 100}] (* Wesley Ivan Hurt, Jan 03 2016 *)
PROG
(PARI) { for (n=1, 1000, write("b066787.txt", n, " ", gcd( 2^n + 1, n^2 + 1)) ) } \\ Harry J. Smith, Mar 25 2010
(Magma) [GCD(2^n+1, n^2+1) : n in [1..100]]; // Wesley Ivan Hurt, Jan 03 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Jan 18 2002
STATUS
approved