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”).

A094920
a(n) = (5^n-1)/4 mod n.
3
0, 0, 1, 0, 1, 0, 1, 0, 4, 6, 1, 0, 1, 6, 1, 0, 1, 0, 1, 16, 10, 6, 1, 0, 6, 6, 13, 16, 1, 6, 1, 0, 31, 6, 11, 0, 1, 6, 31, 16, 1, 0, 1, 24, 31, 6, 1, 0, 29, 6, 31, 0, 1, 0, 11, 48, 31, 6, 1, 36, 1, 6, 31, 0, 1, 12, 1, 20, 31, 16, 1, 0, 1, 6, 31, 4, 39, 6, 1, 16, 40, 6, 1, 0, 16, 6, 31, 64, 1, 36, 57, 64
OFFSET
1,9
MATHEMATICA
Table[Mod[(5^n-1)/4, n], {n, 100}] (* Harvey P. Dale, Sep 20 2016 *)
PROG
(PARI) A094920(n) = lift(Mod((5^n-1)/4, n)); \\ Antti Karttunen, May 19 2020
CROSSREFS
Cf. A003463.
Sequence in context: A013247 A013248 A013254 * A010668 A200601 A277755
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 18 2004
STATUS
approved