Catalan numbers: Difference between revisions

Content added Content deleted
(→‎{{header|Factor}}: add the binomial coefficient method)
m (→‎{{header|Factor}}: cull redundant output)
Line 1,786: Line 1,786:
</pre>
</pre>


This is the last method, memoized by using arrays.
The last method, memoized by using arrays.
<lang factor>USING: kernel math prettyprint sequences ;
<lang factor>USING: kernel math prettyprint sequences ;


Line 1,798: Line 1,798:
15 Catalan .</lang>
15 Catalan .</lang>
{{out}}
{{out}}
Similar to above.
<pre>
V{
1
1
2
5
14
42
132
429
1430
4862
16796
58786
208012
742900
2674440
}</pre>


=={{header|Fantom}}==
=={{header|Fantom}}==