OFFSET
1,1
COMMENTS
LINKS
Nick Hobson, Table of n, a(n) for n = 1..10000 (first 1832 terms from Antti Karttunen)
EXAMPLE
gcd(1!+1,1^1+1) = 2 gives the first term;
gcd(3!+1,3^3+1) = gcd(7,28) = 7 gives the second, and so on.
MATHEMATICA
f[n_] := GCD[n! + 1, n^n + 1]; t = Array[f, 1295]; Rest@ Union@ t (* Robert G. Wilson v, Mar 09 2006 *)
PROG
(PARI) lista(nn) = for (n=1, nn, if ((g=gcd(n! + 1, n^n + 1)) != 1, print1(g, ", "))); \\ Michel Marcus, Jul 22 2018
(C) See Links section in A116893.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Resta, Mar 01 2006
EXTENSIONS
Entries checked by Robert G. Wilson v, Mar 09 2006
STATUS
approved