Stefano said:
ii) # ways = 3<sup>5</sup> - 1<sup>5</sup> - 3[2<sup>5</sup>]
= 146
= Incorrect (Where did I go wrong?)
First of all there are three options where 2 rooms are empty. You can put all the people in room 1, all the people in room 2 or all the people in room 3. This gives you '3' rather than 1<sup>5</sup>.
If only one room is to be empty you are left with two rooms to distribute the people between. From part i) we know that there are (2<sup>5</sup> - 2) ways of doing this. We also subtract two here because if we didn't we would be including a case where 2 rooms are empty and we have already subtracted that above. There are 3 three individual rooms which could be left empty so the number of situations with one room empty is 3(2<sup>5</sup> - 2). This gives us a net sum of:
# ways = 3<sup>5</sup> - 3 - 3(2<sup>5</sup> - 2) = 150
Edit: My spelling sucks wang.