OFFSET
0,3
COMMENTS
(a(n+1) - 4*a(n))/3^n is always one of -3, -2, -1, 0, 1, 2. - Robert Israel, Dec 01 2016
LINKS
Harry J. Smith and Seiichi Manyama, Table of n, a(n) for n = 0..2096 (first 201 terms from Harry J. Smith)
MAPLE
MATHEMATICA
Table[PowerMod[4, n, 3^n], {n, 0, 30}] (* Harvey P. Dale, Aug 26 2012 *)
PROG
(PARI) { f=t=1; for (n=0, 200, write("b064629.txt", n, " ", f%t); f*=4; t*=3 ) } \\ Harry J. Smith, Sep 20 2009
(Sage) [power_mod(4, n, 3^n)for n in range(0, 27)] # Zerinvary Lajos, Nov 28 2009
(Magma) [4^n mod 3^n: n in [0..40]]; // Wesley Ivan Hurt, Dec 01 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Labos Elemer, Oct 01 2001
EXTENSIONS
a(26) from Harry J. Smith, Sep 20 2009
STATUS
approved