Steply

How many ways can 5 books be put in a row

Step by step, with the reason for every step · Factorials · Probability

Step by step

The question

Question: How many ways can 5 books be put in a row?

1 Fill the places

2 Write it as a factorial

So the number of ways is 5 × 4 × 3 × 2 × 1.

ways = 5 × 4 × 3 × 2 × 1

5 times 4 times 3 times 2 times 1 has a short name: 5 factorial.

We write it 5!

5 × 4 × 3 × 2 × 1 = 5!
(5 factorial)

Careful!

A book in one place cannot go in another.

So each place has one fewer.

Careful: not 5 × 5 × 5 × 5 × 5 ✗

3 Multiply

5 times 4 is 20.

20 times 3 is 60.

60 times 2 is 120.

Times 1 changes nothing.

5 × 4 = 20
20 × 3 = 60
60 × 2 = 120

So there are 120 ways.

ways = 120

4 Check

Let's check the other way round: 1 times 2 is 2, then 6, then 24, then 120.

The same.

So the answer is right!

1 × 2 × 3 × 4 × 5: 2, 6, 24, 120 ✓

Let's look back.

First: fill the places.

Then: write it as a factorial.

Then: multiply.

Last: check.

Answer
ways = 120

Your turn

Try this one yourself, then check:

Show the answer
ways = 6

More from Factorials

The whole lesson: Factorials →