Quote:
Originally Posted by Blueriver_21
It took me 1 min to understand what you said, you just simplify C= N!/(N-R)!R! learn something new everyday, thanks.
Yeah and in general: C(n, r) = n*(n-1)*...*(n+1-r) / r!
The numerator is nPr.
Also useful is the identity C(n, r) = C(n, n-r)
So you can always use r <= n/2, for instance C(52,40) = C(52,12)
(Which makes sense without math -- choosing 40 cards is the same as picking which 12 cards are
not chosen.)