OFFSET
1,1
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..209
FORMULA
Empirical: a(n) = 2607*n^2 + 4791*n + 2187.
Conjectures from Colin Barker, Nov 18 2018: (Start)
G.f.: 3*x*(3195 - 2186*x + 729*x^2) / (1 - x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>3.
(End)
EXAMPLE
Some solutions for n=4:
..2..2..2..2..2....0..0..0..0..0....2..2..2..2..2....2..2..2..2..2
..0..0..0..0..0....1..1..1..1..1....1..1..1..1..1....0..0..0..0..0
..2..2..2..2..2....1..1..1..2..2....0..0..0..0..0....2..2..2..2..2
..2..2..2..2..2....0..0..0..1..1....1..1..1..1..1....2..2..2..2..2
..2..2..2..2..2....0..0..0..1..1....2..2..2..2..2....2..2..2..2..2
..1..2..2..2..2....1..1..1..2..2....0..1..1..1..1....1..1..1..1..1
..0..1..1..2..2....1..1..1..2..2....0..2..2..2..2....0..0..0..0..2
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Nov 27 2014
STATUS
approved