|
Search: id:A123010
|
|
|
| A123010 |
|
a(1)=1; a(2)=0; a(3)=4; a(4)=16; a(n)=5a(n-1)+a(n-2)-5a(n-3) for n>=5. |
|
+0 1
|
|
| 1, 0, 4, 16, 84, 416, 2084, 10416, 52084, 260416, 1302084, 6510416, 32552084, 162760416, 813802084, 4069010416, 20345052084, 101725260416, 508626302084, 2543131510416, 12715657552084, 63578287760416, 317891438802084
(list; graph; listen)
|
|
|
OFFSET
|
1,3
|
|
|
FORMULA
|
M = {{0, 1, 1, -1, -1}, {1, 0, 1, -1, -1}, {1, 1, 0, -1, -1}, {-1, -1, -1, 2, 1}, {-1, -1, -1, 1, 2}}; w[1] = {1, 0, 0, 0, 0}; w[n_] := w[n] = M.w[n - 1] a(n) =w[n][[1]]
O.g.f.: (x^2+4*x-1)/((x+1)*(5*x-1)). - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Dec 05 2007
|
|
MAPLE
|
a(n)=the (1, 1)-term of M^(n-1), where M=matrix(5, 5, [0, 1, 1, -1, -1; 1, 0, 1, -1, -1; 1, 1, 0, -1, -1; -1, -1, -1, 2, 1; -1, -1, -1, 1, 2]) (the second Maple program makes use of this formula). The minimal polynomial of M is x^4-5x^3-x^2+5x, the coefficients of which yield the coefficients of the recurrence relation.
a[1]:=1: a[2]:=0: a[3]:=4: a[4]:=16: for n from 5 to 25 do a[n]:=5*a[n-1]+a[n-2]-5*a[n-3] od: seq(a[n], n=1..25);
with(linalg): M[1]:=matrix(5, 5, [0, 1, 1, -1, -1, 1, 0, 1, -1, -1, 1, 1, 0, -1, -1, -1, -1, -1, 2, 1, -1, -1, -1, 1, 2]): for n from 2 to 24 do M[n]:=multiply(M[1], M[n-1]) od: 1, seq(M[n][1, 1], n=1..24);
|
|
MATHEMATICA
|
M = {{0, 1, 1, -1, -1}, {1, 0, 1, -1, -1}, {1, 1, 0, -1, -1}, {-1, -1, -1, 2, 1}, {-1, -1, -1, 1, 2}}; w[1] = {1, 0, 0, 0, 0}; w[n_] := w[n] = M.w[n - 1] a = Table[w[n][[1]], {n, 1, 30}]
|
|
CROSSREFS
|
Sequence in context: A076997 A092304 A022564 this_sequence A121146 A134006 A090013
Adjacent sequences: A123007 A123008 A123009 this_sequence A123011 A123012 A123013
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Roger Bagula (rlbagulatftn(AT)yahoo.com), Sep 23 2006
|
|
EXTENSIONS
|
Edited by N. J. A. Sloane (njas(AT)research.att.com), Oct 15 2006
|
|
|
Search completed in 0.002 seconds
|