OFFSET
1,1
COMMENTS
Row 2 of A255992.
Let T(n,k) = n*k + binomial(k+n, n+1), then A001477 (n=0), A000096 (n=1), and presumably this sequence (n=2). Seen this way a(0)=0, a(1)=3 and the offset here should be 2 (as is also hinted by the name: "Number of length n+2 .."). - Peter Luschny, Aug 25 2019
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
FORMULA
Empirical: a(n) = (1/6)*n^3 + n^2 + (23/6)*n + 3.
Empirical g.f.: x*(2 - x)*(4 - 6*x + 3*x^2) / (1 - x)^4. - Colin Barker, Jan 25 2018
EXAMPLE
Some solutions for n=4:
0 0 0 1 0 0 1 1 0 0 1 0 0 1 1 1
0 1 1 1 0 1 1 0 1 0 1 1 0 0 1 1
0 1 1 0 0 1 1 0 0 0 1 0 1 0 1 1
0 0 1 0 1 0 1 0 1 1 0 0 1 1 0 1
1 1 1 1 1 0 1 0 1 0 1 1 1 1 0 0
1 1 1 1 0 0 0 0 1 0 1 1 0 1 0 0
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Mar 13 2015
STATUS
approved