OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2, -2, 2, -2, 2, -2, 2, -2, 2, -2, 1).
FORMULA
a(n) = 2*a(n-1) -2*a(n-2) +2*a(n-3) -2*a(n-4) +2*a(n-5) -2*a(n-6) +2*a(n-7) -2*a(n-8) +2*a(n-9) -2*a(n-10) +a(n-11). - R. J. Mathar, Apr 20 2010
a(n) = a(n-22). - G. C. Greubel, Mar 18 2016
PROG
(Sage) [power_mod(5, n, 46)for n in range(0, 75)] # Zerinvary Lajos, Nov 26 2009
(PARI) a(n) = lift(Mod(5, 46)^n); \\ Altug Alkan, Mar 18 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved