OFFSET
1,1
COMMENTS
This sequence (and A166812, A166813) correspond to k-tuples x with 0<= x(i+1) <= x(i) <= k except (0,0,0..) and (k,k,k...), where x(i) is the index of the first 2 in row i of the array (or 0 if none); the number of those are the binomials minus 2. - Robert Israel, Nov 23 2015
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A000579(n+6)-2. - R. J. Mathar, Nov 24 2015
G.f.: 1 - 2/(1-x) + 1/(1-x)^7. - Robert Israel, Nov 24 2015
EXAMPLE
Some solutions for n=4
...1.1.1.1.1.2...1.1.1.1.2.2...1.1.1.1.1.1...1.1.1.1.1.1...1.1.1.1.1.1
...1.1.1.1.1.2...1.1.1.1.2.2...1.1.1.1.1.1...1.1.1.1.1.2...1.1.1.1.1.2
...1.1.1.1.2.2...1.1.1.1.2.2...1.1.1.1.1.2...1.1.1.2.2.2...1.1.1.1.1.2
...1.1.1.2.2.2...1.1.1.1.2.2...1.1.1.1.2.2...2.2.2.2.2.2...1.1.1.1.1.2
------
...1.1.1.1.1.2...1.1.1.2.2.2...1.1.1.1.1.2...1.1.1.1.2.2...1.1.1.1.1.2
...1.1.2.2.2.2...1.1.2.2.2.2...1.1.1.1.2.2...1.1.1.1.2.2...1.1.1.1.1.2
...1.2.2.2.2.2...1.1.2.2.2.2...1.1.1.1.2.2...1.2.2.2.2.2...1.1.2.2.2.2
...1.2.2.2.2.2...1.1.2.2.2.2...1.1.2.2.2.2...1.2.2.2.2.2...1.1.2.2.2.2
MAPLE
seq(binomial(n+6, 6)-2, n=1..100); # Robert Israel, Nov 24 2015
PROG
(PARI) Vec(1-2/(1-x)+1/(1-x)^7 + O(x^100)) \\ Altug Alkan, Nov 24 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Oct 21 2009
STATUS
approved