OFFSET
0,5
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
Wikipedia, Tetromino
Index entries for linear recurrences with constant coefficients, signature (2,0,1,2).
FORMULA
G.f.: (x^3+2*x-1) / (2*x^4+x^3+2*x-1).
a(n) = 2*a(n-1)+a(n-3)+2*a(n-4) for n>3, a(0)=1, a(1)=a(2)=a(3)=0.
EXAMPLE
a(5) = 4:
._____.___. .___._____. ._._____._. ._._____._.
|_. ._| ._| |_. |_. ._| | |_. ._| | | |_. ._| |
| |_|___| | | |___|_| | | ._|_|_. | | ._|_|_. |
| ._| |_. | | ._| |_. | |_| |_. |_| |_| ._| |_|
|_|_____|_| |_|_____|_| |_____|___| |___|_____|.
MAPLE
a:= n-> (<<0|1|0|0>, <0|0|1|0>, <0|0|0|1>, <2|1|0|2>>^n.
<<1, 0, 0, 0>>)[1, 1]:
seq(a(n), n=0..40);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Dec 04 2013
STATUS
approved