A070346 a(n) = 3^n mod 37.
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
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 0, 0, 0, 0, -1, 1).
Programs
-
Mathematica
Table[PowerMod[3,n,37],{n,0,70}] (* Harvey P. Dale, Jan 19 2011 *)
-
PARI
a(n)=lift(Mod(3,37)^n) \\ Charles R Greathouse IV, Mar 22 2016
Formula
a(n) = a(n-18). - G. C. Greubel, Mar 11 2016