|         |         | 
The number of sequences with Nonnegative partial sums which can be formed from  1s and
 1s and  
  s (Bailey 1996,
Brualdi 1992) is given by the Catalan Numbers.  Bailey (1996) gives the number of Nonnegative
partial sums of
s (Bailey 1996,
Brualdi 1992) is given by the Catalan Numbers.  Bailey (1996) gives the number of Nonnegative
partial sums of  1s and
 1s and  
  s
s  ,
,  , ...,
, ...,  , so that
, so that
|  | (1) | 
 .  The closed form expression is
.  The closed form expression is
|  | (2) | 
 ,
,
|  | (3) | 
 , and
, and
|  | (4) | 
 .  Setting
.  Setting  then recovers the Catalan Numbers
 then recovers the Catalan Numbers
|  | (5) | 
See also Catalan Number
References
Bailey, D. F.  ``Counting Arrangements of 1's and  
Brualdi, R. A.  Introductory Combinatorics, 2nd ed.  New York: Elsevier, 1992.
 
 's.''  Math. Mag. 69, 128-131, 1996.
's.''  Math. Mag. 69, 128-131, 1996.