OFFSET
0,2
COMMENTS
a(n) is the number of ways to tile this shape, of length n, with 1 X 1 squares and 1 X 3 rectangles (which can be either horizontal or vertical).
_
|_|_
|_|_|______________
|_|_|_|_|_|_|_|_|_|
|_|_|
|_|
LINKS
FORMULA
a(n) = b(n+4) + 2*b(n-5) for b(n) = A000930(n), Narayana's cows sequence.
G.f.: (1 + 3*x + 4*x^2)/(1 - x - x^3). - Stefano Spezia, Jul 06 2025
EXAMPLE
Shown here is one of the a(4)=13 ways to tile this shape of length 4:
_
| |_
| | |____
|_| |_|_|
|_|_|
|_|
MATHEMATICA
LinearRecurrence[{1, 0, 1}, {1, 4, 8}, 40]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Greg Dresden and Saim Usmani, Jul 05 2025
STATUS
approved
