Nothing Special   »   [go: up one dir, main page]

login
A070391
a(n) = 5^n mod 46.
1
1, 5, 25, 33, 27, 43, 31, 17, 39, 11, 9, 45, 41, 21, 13, 19, 3, 15, 29, 7, 35, 37, 1, 5, 25, 33, 27, 43, 31, 17, 39, 11, 9, 45, 41, 21, 13, 19, 3, 15, 29, 7, 35, 37, 1, 5, 25, 33, 27, 43, 31, 17, 39, 11, 9, 45, 41, 21, 13, 19, 3, 15, 29, 7, 35, 37, 1, 5, 25, 33, 27, 43, 31, 17, 39
OFFSET
0,2
LINKS
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
Sequence in context: A018639 A029475 A332657 * A375154 A084967 A249827
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 12 2002
STATUS
approved