OFFSET
1,2
COMMENTS
Column 4 of A229685.
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
FORMULA
Empirical: a(n) = 27*a(n-1) - 243*a(n-2) + 729*a(n-3) for n > 6.
Conjectures from Colin Barker, Jun 16 2017: (Start)
G.f.: 24*x^2*(15 + 49*x - 839*x^2 + 2007*x^3 - 1296*x^4) / (1 - 9*x)^3.
a(n) = 16*3^(2*n-7)*(-449 + 60*n + 256*n^2) for n > 3.
(End)
EXAMPLE
Some solutions for n=3:
0 1 1 0 0 0 1 2 0 1 0 2 0 0 0 1 0 1 1 0
2 2 0 1 1 1 1 1 2 1 2 2 0 2 2 2 0 0 0 2
1 1 0 1 2 2 2 0 2 1 1 0 1 1 1 2 2 2 1 2
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Sep 27 2013
STATUS
approved