OFFSET
0,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000 (terms 1..210 from R. H. Hardin)
FORMULA
a(n) = (2/15)*n^5 + (7/6)*n^4 + (23/6)*n^3 + (35/6)*n^2 + (121/30)*n + 1.
From Colin Barker, Mar 16 2018: (Start)
a(n) = 6*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5) - a(n-6) for n >= 6.
G.f.: (1 + 10*x + 5*x^2) / (1 - x)^6. (End)
EXAMPLE
Some solutions for n=3:
0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 0 0 1 1 0
0 0 0 1 0 0 1 1 0 0 0 0 1 1 1 0 0 1 1 1
0 0 1 1 0 0 1 1 1 0 0 0 1 1 1 0 1 1 1 1
6*a(7) = 40032 = 1*6 + 6*15 + 15*28 + 28*45 + 45*66 + 66*91 + 91*120 + 120*153. - Bruno Berselli, Feb 05 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Apr 23 2013
EXTENSIONS
a(0)=1 prepended by Andrew Howroyd, Feb 11 2024
STATUS
approved