Factorials are the product of an integer and all the positive integers below it, denoted by the exclamation mark symbol (!). They represent the total number of ways a set of distinct objects can be arranged in a specific order.
Calculate the Product for Simple Sets
To find a factorial, you multiply the starting number by every whole number down to one. For example, if you have 4 distinct books and want to know how many ways you can line them up on a shelf, you calculate 4!. This means you multiply 4 × 3 × 2 × 1, which equals 24. The logic is that you have 4 choices for the first position, 3 remaining choices for the second, 2 for the third, and only 1 choice left for the final spot.
A common point of confusion is the value of 0!. While it seems logical that zero would result in zero, 0! is defined as 1. This exists because there is exactly one way to arrange zero items: by doing nothing. This definition ensures that mathematical formulas for combinations and permutations remain consistent and do not result in division by zero.
When you move from 5! to 6!, the number grows rapidly. 5! is 120 (5 × 4 × 3 × 2 × 1). To find 6!, you do not need to start from one again; you simply multiply the previous result by the new number: 120 × 6 = 720. This recursive nature is why factorials are used to describe exponential growth in possibilities.
Apply Factorials to Real World Arrangements
Factorials are most useful when you need to determine the number of possible outcomes for a sequence. Consider a small dinner party with 5 guests and 5 assigned seats. To find the total number of seating arrangements, you calculate 5!. The math is 5 × 4 × 3 × 2 × 1 = 120. If you add just one more guest, the number of possibilities jumps to 720. This illustrates how quickly complexity increases as you add more variables to a decision.
You can use this logic to understand the scale of a problem before you try to solve it. If you are organizing a playlist of 10 songs and want to know how many different orders they could play in, you look at 10!. The result is 3,628,800. Realizing that there are over three million ways to arrange just ten items helps you decide when to stop searching for the perfect order and instead rely on a simple rule or a random shuffle.
In decision-making, this is often called combinatorial explosion. It happens when the number of possible combinations becomes so large that it is impossible for a human to evaluate every single one. By understanding factorials, you can recognize when a task is mathematically overwhelming and shift your strategy from exhaustive searching to heuristic sampling.
Distinguish Between Permutations and Combinations
A factorial tells you the total arrangements of a whole set, but often you only need to arrange a few items from a larger group. This is where you use permutations. A permutation is an arrangement where the order matters. If you have 10 athletes and want to know how many ways gold, silver, and bronze medals can be awarded, you do not use 10!. Instead, you only multiply the first three choices: 10 × 9 × 8 = 720.
Combinations are different because the order does not matter. If you are choosing 3 people for a committee from a group of 10, it does not matter if Person A is picked first or third; they are still on the committee. To find this, you take the permutation result (720) and divide it by the factorial of the number of items chosen (3!). Since 3! is 6, the calculation is 720 / 6 = 120. There are 120 possible committees, but 720 possible medal rankings.
To remember the difference, ask yourself if swapping two items changes the outcome. If you swap the gold and silver medalists, the result is different; that is a permutation. If you swap two people on a cleaning crew, the crew remains the same; that is a combination. Using the wrong method will lead to an overestimation of your options, often by a factor of several thousand in larger sets.
Handle Large Numbers with Stirling’s Approximation
As numbers grow, calculating factorials by hand becomes impossible. 20! is approximately 2.4 quintillion. When you encounter these massive numbers in probability or statistics, you can use Stirling’s approximation to find an estimated value. This method uses the constant pi and the base of the natural logarithm (e) to provide a close estimate without requiring a thousand multiplications.
For most everyday decisions, you do not need the exact number of a large factorial. You only need to understand the rate of growth. A rule of thumb is that adding a single item to a set multiplies the total possibilities by the new set size. If you know there are 100 ways to arrange a set, adding one more item makes it 101 times more complex. This helps you identify the point of diminishing returns in a planning process.
If you are using a calculator and see an “Error” or “Overflow” message, it is likely because the factorial has exceeded the memory limit of the device. Most standard calculators struggle once you reach 70! or 100!. In these cases, you can work with the logarithms of the factorials. By adding the logarithms of the numbers instead of multiplying the numbers themselves, you can manage the scale of the calculation without crashing your software.
Verify Your Results with a Manual Check
When working with small sets, always verify your factorial logic by sketching a tree diagram. For a set of 3 items (A, B, and C), 3! equals 6. You can list them manually: ABC, ACB, BAC, BCA, CAB, CBA. If your manual list does not match your calculation, you may have forgotten to account for a duplicate or incorrectly assumed that order did not matter.
Check for common errors such as multiplying by zero. A factorial never includes zero in the multiplication string, as that would make every result zero. The sequence always stops at 1. If you are calculating a permutation and find your number is larger than the total factorial of the set, you have made a calculation error. The number of ways to arrange a subset can never exceed the number of ways to arrange the entire set.
If you are unsure whether to use a factorial, a permutation, or a combination, write down the constraints of your decision. Note if every item must be used, if items can be repeated, and if the sequence of the items changes the meaning of the result. Once these three factors are clear, the mathematical path becomes obvious. For a full set where order matters, use the factorial. For a partial set where order matters, use a permutation. For a partial set where order is irrelevant, use a combination.
Related
- Why Taking a Moment Helps with Decisions
- Mind Your Head Meaning and How to Use It
- Mind Your Language: Meaning and How to Use It
General information for everyday wellbeing, not medical advice. If something affects your health, sleep or mood for more than a short while, talk to a qualified professional. Read more
Spotted an error? Tell us and we will correct it (corrections policy).