OFFSET
1,1
COMMENTS
If we use the commonly accepted convention that 0^0 = 1, then a(0) = 2. - Chai Wah Wu, Jul 22 2019
REFERENCES
C. Stanley Ogilvy and John T. Anderson, Excursions in Number Theory. Dover. New York: 1988. Page 82.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..500
EXAMPLE
4^4 + 1 = 257 prime, so a(4) = 257;
6^6 + 1 = 13 * 37 * 97, so a(6) = 13.
MATHEMATICA
Table[FactorInteger[n^n + 1][[1, 1]], {n, 74}] (* Vincenzo Librandi, Jul 23 2013 *)
PROG
(PARI) a(n) = {if (n % 2, return (2)); return (factor(n^n + 1)[1, 1]); } \\ Michel Marcus, Jul 23 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Walter Nissen, Jun 24 2000
STATUS
approved