Permutation and Combination

Formulas & shortcuts
21.

There are 3 different maths books, 2 different science books and 2 different history books. In how many orders can all seven books be shelved in a row if books of each subject stay together?

Show answer
Explanation

Treat each subject as one block. Arrange the three subject blocks, then order the distinct books inside each block:

N=3!×3!×2!×2!=6×6×2×2=144.N=3!\times3!\times2!\times2! =6\times6\times2\times2=144.

Answer: D = 144.

22.

Seven people A, B, C, D, E, F and G stand in a row. A must stand beside B, and C must stand beside D. How many arrangements satisfy both conditions?

Show answer
Explanation

Treat A–B and C–D as two blocks alongside E, F and G. That gives five units. Each pair has two possible internal orders:

N=5!×2!×2!=120×2×2=480.N=5!\times2!\times2! =120\times2\times2=480.

The two blocks may themselves be adjacent; the problem imposes no restriction on that.

Answer: D = 480.

23.

How many distinct strings can be formed from BALANCE if the vowels A, A and E form one consecutive block?

Show answer
Explanation

Group A, A and E into one block. Together with B, L, N and C, there are five distinct units.

The vowel block has 3!/2! distinct orders because the two As are identical. Thus

N=5!×3!2!=120×3=360.N=5!\times\frac{3!}{2!}=120\times3=360.

Answer: B = 360.

24.

Six friends sit around a round table. Two specified friends must sit next to one another. Rotations count as the same arrangement, but reversed circular orders count as different. How many arrangements are possible?

Show answer
Explanation

Treat the specified adjacent pair as one block. Five units now sit around a circle, giving 4! circular orders. The pair can reverse internally:

N=(5−1)!×2!=24×2=48.N=(5-1)!\times2!=24\times2=48.

Rotations are removed by the circular factorial; reflections are not identified.

Answer: B = 48.

25.

Eight identical counters are distributed among three named boxes. A box may be empty. How many distributions are possible?

Show answer
Explanation

Let a, b and c be the numbers of counters in the three named boxes. We need nonnegative integer solutions of

a+b+c=8.a+b+c=8.

Represent eight counters and two separators in a row. Choosing the separator positions gives

N=(8+3−13−1)=(102)=45.N=\binom{8+3-1}{3-1}=\binom{10}{2}=45.

Adjacent separators or separators at the ends allow empty boxes.

Answer: B = 45.