OFFSET
0,2
LINKS
R. H. Hardin, Table of n, a(n) for n = 0..210
Index entries for linear recurrences with constant coefficients, signature (2,3,1).
FORMULA
a(n) = 2*a(n-1) +3*a(n-2) +a(n-3).
G.f.: Q(0)/2 , where Q(k) = 1 + 1/(1- x*(4*k+2 +3*x+x^2)/(x*(4*k+4 +3*x+x^2) + 1/Q(k+1))); (continued fraction). - Sergei N. Gladkovskii, Oct 04 2013
G.f.: 1/(1-2*x-3*x^2-x^3). - Alois P. Heinz, Apr 21 2020
EXAMPLE
Some solutions for n=3
..1..1....1..1....0..0....1..0....0..0....1..0....0..0....1..1....0..0....1..0
..1..1....1..1....0..1....0..1....0..0....0..0....0..0....0..0....0..1....0..0
..1..1....0..0....0..0....1..1....0..1....1..1....1..1....1..1....1..1....0..1
MAPLE
a:= n-> (<<0|1|0>, <0|0|1>, <1|3|2>>^n. <<1, 2, 7>>)[1$2]:
seq(a(n), n=0..30); # Alois P. Heinz, Apr 21 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Nov 07 2012
EXTENSIONS
a(0)=1 prepended and first g.f. adapted by Alois P. Heinz, Apr 21 2020
STATUS
approved