|
|
A070377
|
|
a(n) = 5^n mod 27.
|
|
1
|
|
|
1, 5, 25, 17, 4, 20, 19, 14, 16, 26, 22, 2, 10, 23, 7, 8, 13, 11, 1, 5, 25, 17, 4, 20, 19, 14, 16, 26, 22, 2, 10, 23, 7, 8, 13, 11, 1, 5, 25, 17, 4, 20, 19, 14, 16, 26, 22, 2, 10, 23, 7, 8, 13, 11, 1, 5, 25, 17, 4, 20, 19, 14, 16, 26, 22, 2, 10, 23, 7, 8, 13, 11, 1, 5, 25, 17, 4, 20
(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,0,-1,1).
|
|
FORMULA
|
a(n) = a(n-1) - a(n-9) + a(n-10).
G.f.: ( -1-4*x-20*x^2+8*x^3+13*x^4-16*x^5+x^6+5*x^7-2*x^8-11*x^9 ) / ( (x-1)*(1+x)*(x^2-x+1)*(x^6-x^3+1) ). (End)
|
|
MAPLE
|
|
|
MATHEMATICA
|
PowerMod[5, Range[0, 80], 27] (* or *) LinearRecurrence[ {1, 0, 0, 0, 0, 0, 0, 0, -1, 1}, {1, 5, 25, 17, 4, 20, 19, 14, 16, 26}, 80] (* Harvey P. Dale, Aug 12 2012 *)
|
|
PROG
|
(Sage) [power_mod(5, n, 27) for n in range(0, 78)] # Zerinvary Lajos, Nov 26 2009
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|