Worked example: Permutation and Combination Calculator
Ten choose three. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.
View the example inputs
- Distinct items n
- 10
- Positions or selected items r
- 3
- Can an item be used again?
- No — without repetition
| Calculated quantity | Example result |
|---|---|
| Ordered arrangements | 720 |
| Unordered selections | 120 |
| Selection rule | No reuse; order distinguishes permutations |
Permutation and Combination Calculator: decide whether positions have meaning
When do I use a permutation instead of a combination?
Ask whether swapping two selected items creates a different outcome. A chair and deputy chosen from six people have distinct roles: Alex–Blair and Blair–Alex assign different jobs, so order matters. Selecting two people for an unranked committee treats those two names as the same group.
This Permutation and Combination Calculator returns both counts for the same n and r. From six distinct items, selecting two without repetition gives 6 × 5 = 30 ordered arrangements and 30/2! = 15 unordered groups. The visual groups reversed sequences together so the division has a concrete meaning.
What do n and r mean in nPr and nCr?
n counts the distinguishable items available, while r counts the positions or selections you want to fill. Without repetition, each selected item is removed from the pool, so r cannot exceed n. With n = 10 and r = 3, ordered choices number 10 × 9 × 8 = 720.
Each unordered three-item group has 3! = 6 possible orders, so C(10,3) = 720/6 = 120. Distinctness matters: ten labeled objects do not describe the same counting problem as ten objects containing unspecified identical copies.
How do permutations and combinations change with repetition?
With reuse, every ordered position has n choices, giving n^r sequences. Three symbols filling two positions create nine sequences, including AA, BB and CC. Unordered repeated selections are multisets; for positive n, their count is C(n+r−1,r).
Do not divide n^r by r! to count repeated groups. AB has two orders, but AA has only one, so the groups do not all have the same number of rearrangements. For n = 3 and r = 2, there are six unordered repeated selections: AA, AB, AC, BB, BC and CC.
Why is selecting zero items counted as one outcome?
There is exactly one way to choose nothing: the empty selection. This keeps C(n,0) and P(n,0) equal to one, including an empty pool. It also agrees with the empty-product convention used by factorial formulas.
If no items exist but a positive number of repeated selections is requested, there are zero outcomes. A positive selection without repetition from an empty pool is invalid because r exceeds n. Those are different questions, so the calculator distinguishes them.
Are large permutation and combination results exact?
The counting operations use integer arithmetic and return complete decimal strings, avoiding the rounding that occurs when very large counts are stored as ordinary floating-point numbers. Inputs are limited to n and r from 0 through 1,000 to keep interactive work practical.
The comparison table shows several small selection sizes and your selected r. It is an explicitly labeled preview, not an enumeration of every group or a list of all selection sizes. CSV retains the exact digits in each displayed count; spreadsheet software may need text import to preserve very long integers.
What can I calculate with permutations and combinations?
Use ordered counts for assigning different roles, filling labeled positions or forming symbol sequences. Use unordered counts for committees, teams or selections where membership alone defines the outcome. Choose reuse only when selecting an item does not remove it from the available pool.
Circular arrangements, forbidden adjacent items, prescribed duplicate multiplicities and other restrictions need additional reasoning. The total count can be a denominator in a probability problem only when the outcomes you count are equally likely under the stated sampling process.
Formula and calculation method
Without repetition: P(n,r) = n!/(n−r)! and C(n,r) = P(n,r)/r!.
With repetition: ordered sequences = n^r; unordered multisets = C(n+r−1,r) for n > 0.
Selecting nothing gives one empty arrangement. With no available items, a positive-length repeated selection has zero outcomes. Counts are exact base-10 BigInt strings.
Scope and Limitations
- n and r are integers from 0 to 1,000. Items are distinguishable; restrictions, circular symmetry and specified repeated-item multiplicities require different models.
Reference Sources
Frequently asked questions
What is the difference between nPr and nCr?
nPr counts ordered selections; nCr counts unordered selections. Without repetition, nPr = nCr × r!.
Can r be greater than n?
With repetition, yes within the supported limits. Without repetition, it is rejected.
Does this count circular arrangements?
No. Positions are treated as distinct. Circular equivalence requires a different model.
Why not divide n^r by r! when repetition is allowed?
Repeated groups have different numbers of distinct rearrangements, so that division does not count them correctly.
Will a CSV preserve long counts?
The exported count is an exact decimal string. Import long-count columns as text in spreadsheet software to avoid its numeric precision limit.