login
A070484
a(n) = n^3 mod 22.
1
0, 1, 8, 5, 20, 15, 18, 13, 6, 3, 10, 11, 12, 19, 16, 9, 4, 7, 2, 17, 14, 21, 0, 1, 8, 5, 20, 15, 18, 13, 6, 3, 10, 11, 12, 19, 16, 9, 4, 7, 2, 17, 14, 21, 0, 1, 8, 5, 20, 15, 18, 13, 6, 3, 10, 11, 12, 19, 16, 9, 4, 7, 2, 17, 14, 21, 0, 1, 8, 5, 20, 15, 18, 13, 6, 3, 10, 11, 12, 19, 16, 9
OFFSET
0,3
LINKS
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, 1).
FORMULA
From G. C. Greubel, Mar 28 2016: (Start)
a(n) = a(n-22).
G.f.: (-x -8 *x^2 -5*x^3 -20*x^4 -15*x^5 -18*x^6 -13*x^7 -6*x^8 -3*x^9 -10*x^10 -11*x^11 -12*x^12 -19*x^13 -16*x^14 -9*x^15 -4*x^16 -7*x^17 -2*x^18 -17*x^19 -14*x^20 -21*x^21)/(-1 + x^22). (End)
MATHEMATICA
PowerMod[Range[0, 90], 3, 22] (* G. C. Greubel, Mar 28 2016 *)
PROG
(Sage) [power_mod(n, 3, 22 )for n in range(0, 82)] # Zerinvary Lajos, Oct 29 2009
(PARI) a(n)=n^3%22 \\ Charles R Greathouse IV, Apr 06 2016
CROSSREFS
Sequence in context: A253806 A348688 A199806 * A096480 A248292 A196123
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved