Half Catalan triangle by rolf

n=input()+1
s=[1]+n*[0]
for i in range(2*n):
 if i%2<1:print" ".join(map(str,s[:-1]))
 s=[s[j]+s[j-i%2*2+1]for j in range(n)]+[0]

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page