OFFSET
1,1
COMMENTS
Conjecture: a(n) is also the number of length n strings of {0,1,2} with digit sum <= 4 (holds if the empirical formula holds). - Daniel T. Martin, May 24 2023
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
FORMULA
Empirical: a(n) = (1/24)*n^4 + (5/12)*n^3 + (11/24)*n^2 + (13/12)*n + 1.
G.f.: x*(3 - 6*x + 8*x^2 - 5*x^3 + x^4) / (1 - x)^5. (Conjecture from Colin Barker, Sep 07 2018)
EXAMPLE
Some solutions for n=4:
1 0 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 1 1
1 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 0 0 1 1
1 1 0 0 0 1 1 1 0 1 0 1 1 1 0 0 0 0 0 0
0 1 0 0 0 1 1 0 0 1 0 1 0 0 0 0 0 0 0 0
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Jul 04 2013
STATUS
approved