login
A070346
a(n) = 3^n mod 37.
3
1, 3, 9, 27, 7, 21, 26, 4, 12, 36, 34, 28, 10, 30, 16, 11, 33, 25, 1, 3, 9, 27, 7, 21, 26, 4, 12, 36, 34, 28, 10, 30, 16, 11, 33, 25, 1, 3, 9, 27, 7, 21, 26, 4, 12, 36, 34, 28, 10, 30, 16, 11, 33, 25, 1, 3, 9, 27, 7, 21, 26, 4, 12, 36, 34, 28, 10, 30, 16, 11
OFFSET
0,2
LINKS
FORMULA
a(n) = a(n-18). - G. C. Greubel, Mar 11 2016
MATHEMATICA
Table[PowerMod[3, n, 37], {n, 0, 70}] (* Harvey P. Dale, Jan 19 2011 *)
PROG
(PARI) a(n)=lift(Mod(3, 37)^n) \\ Charles R Greathouse IV, Mar 22 2016
CROSSREFS
Sequence in context: A213912 A070360 A248131 * A328754 A070345 A272584
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved