Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Parens permutations (formula)

by tye (Sage)
on Aug 05, 2003 at 19:57 UTC ( [id://281141]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub Prod {
        my( $i, $j )= @_;
    ...
        return 1   if  1 == $len;
        return Prod($parens+1,$parens+$len)/Prod(1,$len)
    }
    
  2. or download this
    (P+1)*(P+2)^2*(P+3)^2*(P+4)/1/2^2/3^2/4
    
  3. or download this
        (P+L)!/P!*(P+L)!/P!*L/(P+1)/(P+L)/L!/L!
    or
        [(P+L)!/P!/L!]^2*1*L/(P+1)/(P+L)
    
  4. or download this
    [(P+L)!/P!/L!]^2*1*L/(P+1)/(P+L)
      == [ C(P+L,P) ] * ??
    ...
    ?? == (P+L)!/P!/L!*1*L/(P+1)/(P+L)
       == (P+L)!/(P+L) /P!/(P+1) /L!*L
       == (P+L-1)! /(P+1)! /(L-1)!
    
  5. or download this
        C(P+L,P)*C(P+L,P+1)/(P+L)
    or
        C(P+L,L)*C(P+L,L-1)/(P+L)
    or ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-18 14:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found