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

A138973
a(n) = 8^n mod 7^n.
7
0, 1, 15, 169, 1695, 15961, 26846, 450066, 5247614, 13156907, 226316077, 680627620, 13354327932, 65310761853, 328708074010, 1951441519231, 15611532153848, 158125187800385, 101848932467045, 7328445851378156, 35829776440278962, 286638211522231696
OFFSET
0,3
LINKS
PROG
(Sage) [power_mod(8, n, 7^n) for n in range(0, 22)] # Zerinvary Lajos, Nov 28 2009
(PARI) a(n) = if (n, lift(Mod(8, 7^n)^n), 0); \\ Michel Marcus, Feb 20 2018
CROSSREFS
Cf. k^n mod (k-1)^n: A002380 (k=3), A064629 (k=4), A138589 (k=5), A138649 (k=6), A139786 (k=7), this sequence (k=8), A139733 (k=9).
Sequence in context: A202663 A202123 A201087 * A016177 A125427 A016279
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 20 2008
STATUS
approved