OFFSET
1,2
COMMENTS
Let p be a prime: n^4+1 == 0 (mod p) if p = 2 or p == 1 (mod 8).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[Mod[n^4 + 1, Prime[n]], {n, 70}]
PROG
(Magma) [(n^4+1) mod NthPrime(n): n in [1..70]];
(PARI) a(n)=(n^4+1)%prime(n) \\ Edward Jiang, Sep 05 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Sep 05 2014
STATUS
approved