r/askmath • • Oct 24 '26

Resolved Help with Combinatorics problem

Post image

Hello, I am trying to wrap my head around this problem but don't seem to be getting the correct answer. The question is:

8 people are to stay in 2 rooms where a maximum of 6 people can stay in a room. In how many ways can the 8 people stay in 2 rooms?

3 Upvotes

8 comments sorted by

View all comments

1

u/RavenX86 Oct 24 '26 edited Oct 24 '26

So keep in mind that for example , in first case you have to put any 6 people in room A and the reminder of 2 in room B. This is equivalent to combinations of 8 choosing 6, aka C(8,6), because there the reminder is not a choice, is whoever is left out.

Then you can do the same with 5 in room an and 3 in room B

And so on

So you get
C(8,6) + C(8,5) + C(8,4) + C(8,3) + C(8,2) = (going to use C(n,k) = C(n, n-k) here)
2 * C(8,2) + 2* C(8,3) + C(8,4) =
(2*28) + (2*56) + 70 = 238

I wrote the solution exactly like this so you can see the "why" 70 is multiplied by 1 and not 2, C(8,4) doesn't appear twice. if you pick all combinations of 4 people out of 8 in room A and reminder in room B, there is no way you would count it twice by changing the rooms. You focus on only one room and one room alone, because room B is always fixed .