login
A038341
Fourth line of 5-wave sequence A038201.
0
1, 2, 14, 29, 175, 365, 2163, 4516, 26703, 55759, 329615, 688286, 4068623, 8495917, 50221212, 104869718, 619907431, 1294463368, 7651850657, 15978257251, 94450905714, 197228218022, 1165858298498, 2434493909304, 14390815650209
OFFSET
0,2
FORMULA
G.f.: (x^3+x^2-2*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, 1, 2), 0, 0, 0, -1]]). 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, 2))[1, 1]: seq(a(n), n=0..30); # Alois P. Heinz, Jul 16 2009
CROSSREFS
Cf. A038201.
Sequence in context: A157023 A101554 A057018 * A075718 A259710 A093794
KEYWORD
nonn,easy
EXTENSIONS
More terms from Alois P. Heinz, Jul 16 2009
STATUS
approved