OFFSET
1,2
COMMENTS
Column 2 of A229606.
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
FORMULA
Empirical: a(n) = 9*a(n-1) - 27*a(n-2) + 27*a(n-3) for n>5.
Conjectures from Colin Barker, Mar 16 2018: (Start)
G.f.: x^2*(6 - 15*x + 13*x^2 - 2*x^3) / (1 - 3*x)^3.
a(n) = 3^(n-5) * (31*n+32*n^2-30) for n>2.
(End)
EXAMPLE
Some solutions for n=3:
0 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 0 1 0 1
1 2 2 0 0 1 0 1 1 2 2 1 2 2 1 1 2 2 2 2
1 2 2 0 2 0 1 2 2 2 2 0 1 1 2 0 0 2 2 0
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Sep 26 2013
STATUS
approved