Calculate P(n,r) permutations — ordered arrangements — and C(n,r) combinations — unordered selections — with factorials, step-by-step working, and real-world examples.
| Feature | Permutation | Combination |
|---|---|---|
| Order matters? | Yes | No |
| Formula | n!/(n−r)! | n!/(r!(n−r)!) |
| Example | Lock codes | Lottery tickets |
| P(5,2) | 20 | — |
| C(5,2) | — | 10 |