OFFSET
1,5
LINKS
Dean Hickerson, Counting Horizontally Convex Polyominoes, J. Integer Sequences, Vol. 2 (1999), #99.1.8.
Index entries for linear recurrences with constant coefficients, signature (5, -7, 4).
FORMULA
G.f.: x^4 (1-x)/(1-5x+7x^2-4x^3).
a(n) = 5*a(n-1) - 7*a(n-2) + 4*a(n-3) for n >= 6.
a(n) = a(n-1) + A049220(n-1) for n >= 2.
MATHEMATICA
a[ n_ ] := a[ n ]=If[ n<6, {0, 0, 0, 1, 4}[ [ n ] ], 5a[ n-1 ]-7a[ n-2 ]+4a[ n-3 ] ]
Join[{0, 0, 0}, LinearRecurrence[{5, -7, 4}, {0, 1, 4}, 30]] (* or *) CoefficientList[ Series[x^4 (1-x)/(1-5x+7x^2-4x^3), {x, 0, 30}], x] (* Harvey P. Dale, May 10 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Dean Hickerson, Aug 10 1999
STATUS
approved