OFFSET
0,2
LINKS
F. v. Lamoen, Wave sequences
Index entries for linear recurrences with constant coefficients, signature (0,15,0,-35,0,28,0,-9,0,1).
FORMULA
G.f.: (x^7+x^6-6*x^5-5*x^4+10*x^3+6*x^2-4*x-1) / (x^10-9*x^8+28*x^6-35*x^4+15*x^2-1). - Alois P. Heinz, Jul 16 2009
MAPLE
a:= n-> (Matrix([`if`(irem(n, 2)=0, [9, 1, 0, -1, -4], [4, 0, -1, -3, -9])]). Matrix(5, (i, j)-> if i=j-1 then 1 elif j=1 then [15, -35, 28, -9, 1][i] else 0 fi)^iquo(n+1, 2))[1, 2]: seq(a(n), n=0..24); # Alois P. Heinz, Jul 16 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved