login
A138617
a(n) = 7^n mod 3^n.
0
0, 1, 4, 19, 52, 40, 280, 1231, 4243, 3457, 43882, 11929, 437797, 407374, 2851618, 10395388, 1023181, 7162267, 50135869, 738371572, 1681816603, 1312363018, 9186541126, 1543668664, 104948859475, 452212479844, 2318198749465, 6059927932939, 4291508105638, 30040556739466
OFFSET
0,3
PROG
(Sage) [power_mod(7, n, 3^n)for n in range(0, 30)] # Zerinvary Lajos, Nov 28 2009
(PARI) a(n) = if (n, lift(Mod(7, 3^n)^n), 0); \\ Michel Marcus, Feb 20 2018
CROSSREFS
Sequence in context: A174458 A263759 A162254 * A304993 A171354 A159833
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 20 2008
STATUS
approved