OFFSET
1,2
COMMENTS
From Gus Wiseman, Jun 16 2023: (Start)
Also appears to be the number of integer compositions of n + 2 with weighted sum greater than reverse-weighted sum, where the weighted sum of a sequence (y_1,...,y_k) is Sum_{i=1..k} i * y_i, and the reverse is Sum_{i=1..k} i * y_{k-i+1}. The a(1) = 1 through a(4) = 12 compositions are:
(21) (31) (32) (42)
(211) (41) (51)
(221) (231)
(311) (312)
(1211) (321)
(2111) (411)
(1311)
(2121)
(2211)
(3111)
(12111)
(21111)
(End)
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..210
EXAMPLE
Some solutions for n=3:
0 1 0 1 0 1 1 1 0 0 1 0 0 0 1 1 0 0 0 1
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Mar 10 2013
STATUS
approved