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

A139735
a(n) = 10^n mod 4^n.
1
0, 2, 4, 40, 16, 672, 576, 5760, 57600, 182784, 779264, 3598336, 10817536, 41066496, 8011776, 616988672, 1874919424, 1569325056, 15693250560, 19493552128, 194935521280, 1949355212800, 10697459105792, 36605846880256, 225320980447232, 1409990787072
OFFSET
0,2
LINKS
MATHEMATICA
Table[PowerMod[10, n, 4^n], {n, 0, 30}] (* Vincenzo Librandi, Jun 12 2016 *)
PROG
(Magma) [Modexp(10, n, 4^n): n in [0..30]]; // Vincenzo Librandi, Jun 11 2016
(PARI) a(n)=10^n%4^n \\ Charles R Greathouse IV, Jun 04 2011
(PARI) a(n)=if(n, lift(Mod(5, 2^n)^n)<<n, 0) \\ Charles R Greathouse IV, Jun 04 2011
CROSSREFS
Sequence in context: A018992 A098625 A057777 * A184952 A098337 A326483
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 20 2008
STATUS
approved