// output of ./demo/comb/catalan-number-demo.cc: // Description: //% Catalan numbers and ballot numbers. //% Cf. OEIS sequences A009766 (Catalan's triangle) and A033184. arg 1: 11 == N [Show N rows] default=11 0: 1 1: 1 1 2: 2 2 1 3: 5 5 3 1 4: 14 14 9 4 1 5: 42 42 28 14 5 1 6: 132 132 90 48 20 6 1 7: 429 429 297 165 75 27 7 1 8: 1430 1430 1001 572 275 110 35 8 1 9: 4862 4862 3432 2002 1001 429 154 44 9 1 10: 16796 16796 11934 7072 3640 1638 637 208 54 10 1