Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: x objects in y containers where all objects are used (multinomial coefficients)

by repellent (Priest)
on Nov 09, 2009 at 20:42 UTC ( #806018=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
         5!                 5!
    ------------ * 3 + ------------ * 3  = 150
    1! * 2! * 2!       1! * 1! * 3!
    
  2. or download this
    sub mult_coeff {
       my $c = shift();
    ...
    use Data::Dumper;
    my @results = mult_coeff(3, qw(a b c d e));
    print Dumper \@results;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://806018]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-07-30 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls