A070496 a(n) = n^3 mod 34.
0, 1, 8, 27, 30, 23, 12, 3, 2, 15, 14, 5, 28, 21, 24, 9, 16, 17, 18, 25, 10, 13, 6, 29, 20, 19, 32, 31, 22, 11, 4, 7, 26, 33, 0, 1, 8, 27, 30, 23, 12, 3, 2, 15, 14, 5, 28, 21, 24, 9, 16, 17, 18, 25, 10, 13, 6, 29, 20, 19, 32, 31, 22, 11, 4, 7, 26, 33, 0, 1, 8, 27, 30, 23, 12, 3, 2, 15
Offset: 0
Links
- Harvey P. Dale, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
Crossrefs
Cf. A070456.
Programs
-
Maple
A070496:=n->n^3 mod 34; seq(A070496(n), n=0..100); # Wesley Ivan Hurt, Nov 20 2013
-
Mathematica
PowerMod[Range[0,80],3,34] (* Harvey P. Dale, Oct 02 2011 *)
-
PARI
a(n)=n^3%34 \\ Charles R Greathouse IV, Apr 06 2016
-
Sage
[power_mod(n,3,34 )for n in range(0,78)] # Zerinvary Lajos, Oct 30 2009
Formula
a(n) = a(n-34). - G. C. Greubel, Mar 30 2016