Distributing the balls by teebee(tybalt89)

#!perl -lpa
use bigint;sub
f{my($n,$k)=@_;${"@_"}//=$n?$k*(f(--$n,$k)+f($n,$k-1)):!$k}$_=f@F

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

download

return to the top page