Worked example

Operation: Combination nCr
n: 52
r: 5
(52 × 51 × 50 × 49 × 48)/(5 × 4 × 3 × 2 × 1) = 311875200/120

→ 2598960

Method and scope

Exact integer results for 0≤r≤n≤2,000. Combinations ignore order; permutations count order without repetition. 0!=1. The limit bounds computation and output size.

C(n,r)=n!/(r!(n−r)!); P(n,r)=n!/(n−r)!

Sources