Permutation & Combination
Calculate permutations P(n,r) and combinations C(n,r) with large-number support.
| n | r | P(n,r) | C(n,r) |
|---|---|---|---|
| 3 | 2 | 6 | 3 |
| 4 | 2 | 12 | 6 |
| 5 | 2 | 20 | 10 |
| 5 | 3 | 60 | 10 |
| 6 | 2 | 30 | 15 |
| 6 | 3 | 120 | 20 |
| 7 | 3 | 210 | 35 |
| 8 | 3 | 336 | 56 |
| 10 | 2 | 90 | 45 |
| 10 | 3 | 720 | 120 |
| 10 | 5 | 30240 | 252 |
| 12 | 4 | 11880 | 495 |
| 15 | 5 | 360360 | 3003 |
| 20 | 5 | 1860480 | 15504 |
| 52 | 5 | 311875200 | 2598960 |
Features
The permutation & combination calculator computes the number of permutations and combinations when selecting r elements from n distinct elements.
- Permutation P(n,r): the number of ordered selections of r from n elements, formula n! / (n-r)!
- Combination C(n,r): the number of unordered selections of r from n elements, formula n! / (r! × (n-r)!)
- Large-number support: high-precision computation powered by bignumber.js, supporting large permutations and combinations
Usage Instructions
Features
The permutation & combination calculator computes P(n,r) and C(n,r) for selecting r elements from n distinct elements, using bignumber.js for high-precision large-number arithmetic, with a quick-reference table of common values.
Steps
Enter total n and choose r → Click "Calculate" → View the permutation and combination results with expanded formulas; the table at the bottom provides quick reference values for common n, r pairs.
Notes
n and r must be non-negative integers and r cannot exceed n; overly long results are shown in scientific notation; all calculations run locally in the browser.