login
A139734
a(n) = 10^n mod 3^n.
1
0, 1, 1, 1, 37, 127, 541, 1036, 3799, 5185, 51850, 164206, 224884, 1185958, 3887965, 5398867, 10941949, 66372769, 276307201, 438549076, 3223229293, 7824802123, 15485902012, 60715841293, 42299339968, 705422936161, 1970497704952, 1911916251217, 11493565027183
OFFSET
0,5
LINKS
MATHEMATICA
Table[PowerMod[10, n, 3^n], {n, 0, 30}] (* Harvey P. Dale, Aug 04 2012 *)
PROG
(Sage) [power_mod(10, n, 3^n) for n in range(0, 29)] # Zerinvary Lajos, Nov 28 2009
(Magma) [10^n mod 3^n: n in [0..35]]; // Vincenzo Librandi, Jun 04 2011
CROSSREFS
Sequence in context: A165811 A142331 A250899 * A142388 A117504 A055783
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 20 2008
STATUS
approved