OFFSET
0,3
LINKS
G. C. Greubel, 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, 1).
FORMULA
a(3*k) = 0. - Altug Alkan, Oct 03 2015
a(n) = a(n+9). - Altug Alkan, Oct 03 2015
G.f.: (-x -8*x^2 -10*x^4 -17*x^5 -19*x^7 -26*x^8)/(-1 + x^9). - G. C. Greubel, Mar 30 2016
MATHEMATICA
Table[PowerMod[n, 3, 27], {n, 0, 100}] (* Vincenzo Librandi, Oct 03 2015 *)
PROG
(SageMath) [power_mod(n, 3, 27 ) for n in range(0, 86)] # Zerinvary Lajos, Oct 30 2009
(PARI) vector(100, n, (n-1)^3 % 27); \\ Altug Alkan, Oct 03 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved
