OFFSET
0,3
COMMENTS
Same as n^7 mod 14.
More generally, a(n) = n^(7^k) mod 14, for k >= 0. - Altug Alkan, Mar 25 2016
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
MATHEMATICA
Table[Mod[n, 14], {n, 0, 120}] (* Michael De Vlieger, Mar 25 2016 *)
PROG
(Sage) [power_mod(n, 7, 14) for n in range(0, 93)] # Zerinvary Lajos, Oct 28 2009
(PARI) a(n) = n % 14; \\ Joerg Arndt, Mar 25 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 13 2002
STATUS
approved