login
A246864
(n^4+1) mod prime(n).
1
0, 2, 2, 5, 10, 10, 5, 12, 7, 25, 10, 17, 26, 18, 7, 29, 37, 57, 7, 38, 10, 22, 49, 74, 7, 53, 65, 49, 90, 17, 105, 53, 50, 130, 47, 44, 53, 41, 158, 120, 68, 126, 93, 37, 71, 156, 96, 125, 137, 133, 47, 129, 142, 181, 141, 138, 173, 79, 274, 0, 67, 54, 178, 11
OFFSET
1,2
COMMENTS
Let p be a prime: n^4+1 == 0 (mod p) if p = 2 or p == 1 (mod 8).
LINKS
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
Cf. A000040.
Sequence in context: A273964 A223062 A208788 * A262924 A331540 A329676
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Sep 05 2014
STATUS
approved