The number of ways in which n books can be arranged can be arranged on a shelf so that two particular books shall not be together is
A
(n−2)(n−1)!
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
(n−1)n!
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
(n−2)n!
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Noneofthese
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is A(n−2)(n−1)!
The total number of arrangements in which all n books can be arranged
on the shelf without any condition is-
W1=nPn=n!.....(1)
Number of ways in which the two particular books are together =2P2=2!=2 ways.
Consider those two books which are kept together as one composite book and with the rest of the (n−2) books from (n−1) books which are to be arranged on the shelf then the number of ways =n−1Pn−1=(n−1)!
Therefore,
the total number of ways on which the two particular books are together-
W2=2×(n−1)!.....(2)
Now,
Number of ways of n books on a shelf so that two particular books are not together is =W1−W2