OFFSET
0,3
COMMENTS
a(n) repeats after 28 terms. - Vincenzo Librandi, Oct 03 2015
a(14k) = 0. - Altug Alkan, Oct 03 2015
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
MATHEMATICA
Table[PowerMod[n, 3, 28], {n, 0, 100}] (* Vincenzo Librandi, Oct 03 2015 *)
PROG
(Sage) [power_mod(n, 3, 28 ) for n in range(0, 81)] # Zerinvary Lajos, Oct 30 2009
(PARI) vector(100, n, (n-1)^3 % 28); \\ Altug Alkan, Oct 03 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved