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

A138955
a(n) = 8^n mod 3^n.
0
0, 2, 1, 26, 46, 206, 433, 2006, 739, 19034, 53857, 76562, 435349, 1357028, 1290286, 5539319, 1267831, 96236090, 124187905, 993503240, 974457118, 4308872543, 13550273938, 45640072286, 176834220634, 567385155629, 1149926807260, 6657548629751, 22757999098060
OFFSET
0,2
PROG
(Sage) [power_mod(8, n, 3^n)for n in range(0, 29)] # Zerinvary Lajos, Nov 28 2009
(PARI) a(n) = if (n, lift(Mod(8, 3^n)^n), 0); \\ Michel Marcus, Feb 20 2018
CROSSREFS
Sequence in context: A366048 A098878 A235031 * A089963 A362013 A336911
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 20 2008
STATUS
approved