Distributing the balls by tybalt89

#!perl -lpa
use bigint;sub
f{my($n,$k)=@_;${"@_"}//=$n?$k*(f($n-1,$k)+f($n-1,$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