login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A131298
Diagonal sums of A104730.
2
1, 1, 2, 4, 6, 11, 18, 30, 50, 82, 135, 221, 361, 589, 959, 1560, 2535, 4116, 6679, 10832, 17560, 28457, 46103, 74674, 120928, 195802, 316995, 513148, 830608, 1344372, 2175796, 3521249, 5698477
OFFSET
0,3
FORMULA
G.f.: (1-x^2)/((1-x-x^2)*(1-x^2-x^3)) = (1+x)/(1-x-x^2) - x*(1+x)/(1-x^2-x^3).
a(n) = Sum_{k=0..floor(n/2)} C(n-k+1,k) - C(k,n-2k+1).
MATHEMATICA
LinearRecurrence[{1, 2, 0, -2, -1}, {1, 1, 2, 4, 6}, 40] (* Harvey P. Dale, Aug 21 2021 *)
CROSSREFS
Cf. A104730.
Sequence in context: A026636 A026658 A138688 * A168445 A328669 A185192
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jun 26 2007
STATUS
approved