|
|
A070382
|
|
a(n) = 5^n mod 34.
|
|
1
|
|
|
1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7, 1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7, 1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7, 1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7, 1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,-1,1). [R. J. Mathar, Apr 20 2010]
|
|
FORMULA
|
a(n) = a(n-1) - a(n-8) + a(n-9).
G.f.: ( -1-4*x-20*x^2+2*x^3+10*x^4-18*x^5+12*x^6-8*x^7-7*x^8 ) / ( (x-1)*(1+x^8) ). (End)
|
|
MATHEMATICA
|
PowerMod[5, Range[0, 100], 34] (* or *) PadRight[{}, 120, {1, 5, 25, 23, 13, 31, 19, 27, 33, 29, 9, 11, 21, 3, 15, 7}] (* Harvey P. Dale, May 03 2018 *)
|
|
PROG
|
(Sage) [power_mod(5, n, 34) for n in range(0, 76)] # Zerinvary Lajos, Nov 26 2009
(PARI) a(n) = lift(Mod(5, 34)^n); \\ Altug Alkan, Mar 16 2016
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|