A070636 a(n) = n^6 mod 13.
0, 1, 12, 1, 1, 12, 12, 12, 12, 1, 1, 12, 1, 0, 1, 12, 1, 1, 12, 12, 12, 12, 1, 1, 12, 1, 0, 1, 12, 1, 1, 12, 12, 12, 12, 1, 1, 12, 1, 0, 1, 12, 1, 1, 12, 12, 12, 12, 1, 1, 12, 1, 0, 1, 12, 1, 1, 12, 12, 12, 12, 1, 1, 12, 1, 0, 1, 12, 1, 1, 12, 12, 12, 12, 1, 1, 12, 1, 0, 1, 12, 1, 1, 12
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
Programs
-
Mathematica
PowerMod[Range[0,90],6,13] (* Harvey P. Dale, Feb 13 2011 *)
-
PARI
a(n)=n^6%13 \\ Charles R Greathouse IV, Apr 06 2016
-
Sage
[power_mod(n,6,13)for n in range(0, 84)] # Zerinvary Lajos, Nov 06 2009
Formula
a(n) = a(n-13). - Wesley Ivan Hurt, Dec 26 2023