Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by spinclad (6747) on 2009.01.02 2:11 (#66699)
    int(fact(n)/2) is cute, but a bit off: it will grow as n^n, not n^2:

    0 0 1 3 12 60 360 ...

    C^n_2 is of course n!/(n-2)!2!, or n(n-1)/2:

    0 0 1 3 6 10 15 ...