Factorials: work with them, never multiply them out
A factorial is a short way to write a long product. The factorial of n, written n!, is the product of every whole number from 1 up to n.
5! = 5 × 4 × 3 × 2 × 1 = 120
Factorials grow very fast. 10! is already more than three million. So you should never multiply a big factorial out. A question on factorials always has a way around the multiplication, and there are only four such ways to learn.
The values worth knowing
Learn these by heart. They come up again and again.
| n! | 1! | 2! | 3! | 4! | 5! | 6! | 7! |
|---|---|---|---|---|---|---|---|
| Value | 1 | 2 | 6 | 24 | 120 | 720 | 5040 |
One more: 0! = 1. This is a convention. It is fixed at 1 so that the formulas keep working. It is not 0.
Way 1: open and cancel
Look at 6! = 6 × 5 × 4 × 3 × 2 × 1. Everything after the 6 is 5!. So 6! = 6 × 5!. In general:
n! = n × (n − 1)!
Every factorial holds the one before it. This is what makes division easy. To find 10! / 8!, open the bigger factorial until the smaller one appears:
10! / 8! = (10 × 9 × 8!) / 8! = 10 × 9 = 90
The 8! cancels. Nothing big was ever multiplied. The same works with letters: (n + 1)! / n! = n + 1, and (n + 1)! / (n − 1)! = (n + 1) × n.
Way 2: from 5! on, the last digit is 0
5! = 120 ends in 0, because it has a 5 and a 2 inside it, and 5 × 2 = 10. Every later factorial contains the whole of 5!, so it also ends in 0.
Now take a sum such as 1! + 2! + 3! + ... + 100!. What is its last digit? The terms from 5! onwards all end in 0, so they add nothing to the last digit. Only the first four terms matter:
1 + 2 + 6 + 24 = 33
The last digit is 3. It would be 3 whether the sum stopped at 10!, at 100! or at 1000!.
Way 3: big terms leave no remainder
n! is the product of 1 to n, so it is divisible by every number from 1 to n. Every factorial after it contains n!, so it is divisible by all those numbers too.
Divide 1! + 2! + ... + 100! by 5. Every term from 5! onwards is a multiple of 5 and leaves nothing. The first four terms add to 33, and 33 = 30 + 3. The remainder is 3.
Divide the same sum by 12. Find the first factorial that 12 goes into. It is 4! = 24. So every term from 4! onwards drops out. What is left is 1 + 2 + 6 = 9. The remainder is 9.
The method is always the same: find the first factorial that the divisor goes into, throw away that term and everything after it, and work with the few small terms that remain.
Way 4: the highest power of a prime
What is the highest power of 3 that divides 30!? In other words, how many 3s are there inside 30!?
Divide by 3 again and again, drop the remainders, and add the quotients.
- 30 ÷ 3 = 10. There are ten multiples of 3 up to 30. Each gives one 3.
- 10 ÷ 3 = 3. The numbers 9, 18 and 27 each hold one more 3.
- 3 ÷ 3 = 1. The number 27 = 3 × 3 × 3 holds a third 3.
10 + 3 + 1 = 14. So 3^14 divides 30!, and 3^15 does not. Stop dividing when the quotient becomes smaller than the prime.
Summary
| The question asks for | What to do | Example |
|---|---|---|
| A ratio of factorials | Open the bigger one, cancel | 10! / 8! = 10 × 9 = 90 |
| Last digit of a sum of factorials | Keep only 1! to 4! | 1 + 2 + 6 + 24 = 33, so 3 |
| Remainder of a sum of factorials | Drop every term the divisor goes into | divide by 12: 1 + 2 + 6 = 9 |
| Highest power of a prime in n! | Divide repeatedly, add the quotients | 3 in 30!: 10 + 3 + 1 = 14 |
Where students slip
- Adding the numbers. 3! + 2! is not 5!. It is 6 + 2 = 8, while 5! is 120. In the same way, 2 × 3! is not 6!.
- Cancelling the sign. 7! / 5! is not 7/5. Open it: 7 × 6 = 42.
- Taking 0! as 0. It is 1.
- Not reducing at the end. Divide a sum of factorials by 8 and the small terms give 1 + 2 + 6 = 9. But 9 is bigger than 8, so the remainder is 1, not 9.
- Stopping after one division. For the power of 3 in 20!, 20 ÷ 3 = 6 is not the answer. Divide again: 6 ÷ 3 = 2. The answer is 6 + 2 = 8.
- Using the method on a number that is not prime. Repeated division works for primes such as 2, 3, 5 and 7. It does not work directly for 4, 6 or 9.
How to practise
We searched the CSAT papers from 2017 to 2026 and, in our count, not one question has a factorial sign in it. The ideas still earn their place, because the same thinking is needed for a long product: the 2020 and 2024 papers each asked how many zeros a long product ends in, and that is answered by counting how many times 5 and 2 sit inside the product. So keep the practice short.
Write the values from 1! to 7! from memory until you never hesitate. Then do five ratios such as 9! / 7! and 20! / 18! in your head. Next, find the remainder of 1! + 2! + ... + 50! when divided by 6, by 8, by 10 and by 24. Finish with the highest power of 2 in 12!, of 3 in 20! and of 7 in 50!. Check each of these against a slow, written count once, so that you trust the short method.