How to use it
- Enter n, the number of items to choose from.
- Enter r, how many you choose.
- Read the permutations (order matters) and combinations (order does not).
How it works
nPr = n! ÷ (n − r)! and nCr = n! ÷ (r! × (n − r)!). Without repetition r cannot exceed n. With repetition allowed, arrangements are n^r and combinations are C(n + r − 1, r). BigInt arithmetic keeps every digit exact.
Examples
- Choosing 3 of 10: 720 ordered arrangements or 120 unordered combinations. C(52, 5) = 2,598,960 poker hands.
Limitations
- n and r up to 3,000. Results with more than 40 digits are shown as scientific notation plus the digit count.
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].