Equivalently, the number of sequences with nonnegative partial sums that can be formed from 1s and s is (Bailey 1996, Brualdi 1997, Mays and Wojciechowski 2000).
For , the number whose nonempty proper partial
sums are all positive is . These paths touch the
diagonal only at their endpoints. The first few of these are summarized in the following
table.
lists
1
2
3
,
4
,,
,,
In a unit interval order with elements indexed by nondecreasing left endpoints, the incomparable pairs correspond to the unit squares between a Dyck path
and the diagonal. Haglund's zeta map relates this encoding to the path obtained from
the order's part listing (Gélinas et al. 2026).
Bailey, D. F. "Counting Arrangements of 1's and 's." Math. Mag.69,
128-131, 1996.Brualdi, R. A. Introductory
Combinatorics, 4th ed. New York: Elsevier, 1997.Degenhardt,
S. L. and Milne, S. C. "Weighted Inversion Statistics and Their Symmetry
Groups." J. Combin. Theory Ser. A90, 49-103, 2000.Gélinas,
F.; Segovia, A.; and Thomas, H. "Proof of a Conjecture of Matherne, Morales,
and Selover on Encodings of Unit Interval Orders." Elec. J. Combin.33,
P4.31, 2026. https://doi.org/10.37236/11825.Mays,
M. E. and Wojciechowski, J. "A Determinant Property of Catalan Numbers."
Disc. Math.211, 125-133, 2000.Sloane, N. J. A.
Sequence A000108/M1459 in "The On-Line
Encyclopedia of Integer Sequences."