OFFSET
0,3
COMMENTS
Diagonal sums of number triangle A124860.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 3, 4, 2).
FORMULA
a(n)=a(n-1)+3a(n-2)+4a(n-3)+2a(n-4); a(n)=sum{k=0..floor(n/2), J(n-k+1)C(n-k,k)} where J(n)=A001045(n). - corrected by Harvey P. Dale, Apr 22 2011
G.f.: 1 + x/(G(0) - x) where G(k) = 1 - 8*x - 2*k*x + k + 2*x*(k+1)*(k+5)/G(k+1); (continued fraction). - Sergei N. Gladkovskii, Apr 09 2013
MATHEMATICA
LinearRecurrence[{1, 3, 4, 2}, {1, 1, 4, 11}, 30] (* or *) CoefficientList[ Series[ 1/(1-x-3x^2-4x^3-2x^4), {x, 0, 30}], x] (* Harvey P. Dale, Apr 22 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Nov 10 2006
STATUS
approved