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...