I know that if i forget about the condition that no room is empty, then i can line 37 people up and assign each to a room to get a sequence with repetition, which means 5 ways to give the first person a room, 5 ways for the second etc until i getpossible ways to place 37 people in 5 rooms. But now with the condition that no room is empty? I suppose i could subtract the subcases of 1 room empty,and 37 people in 4 rooms, 2 rooms empty and 37 people in 3 rooms etc, but this seems lengthy and i have a feeling there's a better way?


LinkBack URL
About LinkBacks


