Suppose that six students, including Madhu and Puja, are having six beds arranged in a row. Further, suppose that Madhu does not want a bed adjacent to Puja. Then the number of ways, the beds can be allotted to students is :
Show Hint
Count all arrangements and subtract those in which Madhu and Puja have adjacent beds.
Total ways to allot 6 beds to 6 students \(=6!=720\). Ways in which Madhu and Puja are adjacent: treat them as one unit, so 5 units can be arranged in \(5!=120\) ways, and the two can swap places in 2 ways: \(120\times2=240\). Required number \(=720-240=480\). Answer: (2) 480