Catalan numbers/Pascal's triangle: Difference between revisions

Line 261:
for j in countdown(i+1, 1): t[j] += t[j-1]
stdout.write t[i+1] - t[i], " "</lang>
{{Out}}
Output:
<pre>1 2 5 14 42 132 429 1430 4862 16796 58786 208012 742900 2674440 9694845 </pre>
 
Anonymous user