Permutation Calculator
Input Parameters
Computed Results
The permutation calculator determines the total number of ways to select and arrange a specific number of items from a larger set. It calculates permutations both with and without repetition, providing the exact formula used and comparing the result to combinations when applicable.
Practical Use Cases
Permutations are used whenever the order of selection matters. Common applications include determining the number of possible passwords or PIN codes, calculating seating arrangements, scheduling events, or analyzing probabilities in games and lotteries where the sequence of drawn numbers is important.
How to Use the Calculator
Follow these steps to calculate the number of possible arrangements:
- Enter the Total Number of Items (n) available in your set.
- Enter the Number of Items Taken (r), which is how many items you are selecting and arranging.
- Select whether to Allow Repetition. Choose "yes" if an item can be selected more than once (like digits in a PIN), or "no" if each item can only be used once.
The calculator will display the total permutations, the formula applied, and the corresponding number of combinations (if repetition is not allowed). A visual chart also compares permutations versus combinations.
Formula & Explanation
The calculator uses two distinct formulas depending on whether repetition is allowed.
Without Repetition
When items cannot be repeated, the number of permutations is calculated using factorials:
Where n is the total number of items, r is the number of items taken, and ! denotes a factorial (the product of an integer and all the integers below it).
With Repetition
When items can be selected multiple times, the formula simplifies to an exponent:
Verified Scenario Walkthroughs
Here are examples of how the calculator processes different inputs:
Small Set with Repetition Allowed
If you have 4 total items and select 2, allowing repetition:
- Total Permutations: 16
- Formula Used: P_rep(n, r) = n^r
- Combinations: N/A (Repetition enabled)
Standard Lottery Style Selection
If you select 6 numbers from a pool of 49 without repetition:
- Total Permutations: 10,068,347,520
- Formula Used: nPr = n! / (n - r)!
- Combinations: 13,983,816
Large Set Permutation Calculation
Selecting 10 items from a set of 100 without repetition yields massive results:
- Total Permutations: 62,815,650,955,529,472,000
- Formula Used: nPr = n! / (n - r)!
- Combinations: 17,310,309,456,440
Invalid Selection
If you attempt to select more items than are available (e.g., taking 15 items from a set of 10) without repetition, the result is 0 permutations and 0 combinations.
Inputs & Outputs Table
| Field | Type | Description |
|---|---|---|
| Total Number of Items (n) | Input | The total number of items in the set (n ≥ 0). |
| Number of Items Taken (r) | Input | The number of items to select/arrange (0 ≤ r ≤ n). |
| Allow Repetition? | Input | Choose whether items can be repeated in the arrangement. |
| Total Permutations | Output | The total number of possible arrangements. |
| Formula Used | Output | The specific mathematical formula applied based on your inputs. |
| Combinations (nCr, without repetition) | Output | The number of combinations (where order does not matter), provided only when repetition is not allowed. |
Frequently Asked Questions
What is the difference between a permutation and a combination?
In a permutation, the order of the selected items matters (e.g., a PIN code where 123 is different from 321). In a combination, the order does not matter (e.g., a hand of cards where the sequence you received them is irrelevant).
What happens if I try to select more items than are available?
If repetition is not allowed, you cannot select more items than exist in the total set (r cannot be greater than n). The calculator will return 0 permutations. If repetition is allowed, you can select more items than the total set size.