Question
Question: In how many ways n books can be arranged in a row so that two specified books are not together A) ...
In how many ways n books can be arranged in a row so that two specified books are not together
A) n!−(n−2)!
B) (n−1)!−(n−2)
C) n!−2(n−1)!
D) (n−2)n!
Solution
First, find the number of ways in which n books can be arranged in a row.
Then, find the number of ways that any 2 books are kept together.
Finally, to get the number of ways n books can be arranged in a row so that two specified books are not together can be given by subtracting the number of ways in which 2 books can be arranged together from the total number of ways n books can be arranged.
Complete step by step solution:
Firstly, the number of ways n books can be arranged in different ways without any condition is, nPn=(n−n)!n!=0!n!=n! … (1)
Now, 2 books can be together in 2P2=(2−2)!2!=0!2!=2!=2 different ways.
Let us consider these 2 books as one whole composite book and kept together with the remaining (n−2) books.
Now, the remaining (n−1) books can be arranged in n−1Pn−1=(n−1−n+1)!(n−1)!=0!(n−1)!=(n−1)! .
Then, by the fundamental principle, the number of ways in which 2 books can be arranged together becomes 2(n−1)! .
Now, the number of ways n books can be arranged in a row so that two specified books are not together is given by subtracting the number of ways in which 2 books can be arranged together i.e. 2(n−1)! from total number of ways n books can be arranged i.e. n! .
So, the number of ways n books can be arranged in a row so that two specified books are not together =n!−2(n−1)!.
Note:
Permutation is generally used in the lists where order of the objects matter. Here, specific two books cannot be arranged together. So, we have to use permutation.
Combination is generally used for groups where order of the object does not matter.