login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A178211
a(n) = prime(n)^2 mod n.
1
0, 1, 1, 1, 1, 1, 2, 1, 7, 1, 4, 1, 4, 1, 4, 9, 13, 13, 5, 1, 16, 15, 12, 1, 9, 9, 25, 25, 20, 19, 9, 9, 25, 9, 11, 13, 7, 7, 4, 9, 20, 1, 17, 25, 19, 41, 12, 1, 30, 41, 25, 25, 46, 37, 49, 9, 28, 13, 29, 1, 57, 41, 1, 17, 14, 37, 16, 9, 4, 1, 4, 1, 4, 9, 16
OFFSET
1,7
FORMULA
a(n) = A001248(n) mod A000027(n).
MATHEMATICA
f[n_] := Mod[Prime@ n^2, n]; Array[f, 75]
CROSSREFS
Sequence in context: A010254 A178618 A155992 * A305564 A354873 A345301
KEYWORD
nonn
AUTHOR
STATUS
approved