Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 exploiting the Monastery: (5)
As of 2014-09-20 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (157 votes), past polls