cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A049220 Number of horizontally convex n-ominoes in which the top row has at least 2 squares and the rightmost square in the top row is above the leftmost square in the second row.

Original entry on oeis.org

0, 0, 1, 3, 9, 28, 89, 285, 914, 2931, 9397, 30124, 96565, 309545, 992266, 3180775, 10196193, 32684604, 104772769, 335856389, 1076610978, 3451151243, 11062904925, 35462909836, 113678819677, 364405349233, 1168126647770
Offset: 1

Views

Author

Dean Hickerson, Aug 10 1999

Keywords

Crossrefs

Cf. A001169.

Programs

  • Mathematica
    a[ n_ ] := a[ n ]=If[ n<6, {0, 0, 1, 3, 9}[ [ n ] ], 5a[ n-1 ]-7a[ n-2 ]+4a[ n-3 ] ]

Formula

G.f.: x^3 (1-x)^2/(1-5x+7x^2-4x^3).
a(n) = 5a(n-1) - 7a(n-2) + 4a(n-3) for n >= 6.
a(n) = a(n-1) + A001169(n-2) for n >= 3.