Hoy,
Problem 2:
As promised, the correct answer to problem 2, derived by two different methods, is
1560.
Method 1:
There are two possible configurations, previously listed by Kat, namely 3.1.1.1 and 2.2.1.1. There are 4 different anonymous student distributions for configuration 1, and 6 for configuration 2. So, you get, 4 x 6!/3! = 480 for config 1, and 6 x 6!/(2! x 2!) = 1080 for config 2. 480 + 1080 = 1560.
(If the rooms don't matter, you drop that 4 and that 6, and you get 120 + 180 = 300. If the rooms do matter but the students don't, you simply get 4 + 6 = 10. If neither of them matters, then you get Kat's answer of 2.)
Method 2:
There are a total of 4^6 = 4096 distributions of 6 students across 4 rooms, of which, some have some rooms empty.
For 3 rooms empty, all the students are in one room, which can be any one of the 4 rooms. Thus, 4 x 1^6 = 4.
For 2 rooms empty, there are 6 combinations of which rooms are empty. For each combination, you get a total of 2^6 distributions, but you have to subtract the 2 cases in which one of the two rooms is also empty. Thus, 6 x (2^6 - 2= = 372.
For 1 room empty, bear with me, this is tricky. There are 4 different rooms which could be empty. For the remaining 3 rooms, you are left with 3^6 distributions but you have to subtract the cases where one or two of those rooms are also empty. The reasoning is the same as in the paragraph above, only for 3 rooms. You get 3 x (2^6 - 2) cases for one room empty, and 3 cases for two rooms empty. Thus, 4 x (3^6 - 3 x (2^6 - 2) - 3) = 4 x (729 - 186 - 3) = 2160.
The answer is thus 4096 - 2160 - 372 - 4 = 1560.
--//--
Problem 1:
A similar correction to the maths for the variation on problem 1 now yields the correct result of 5796. It occurs to me, though, that, even though these maths are correct, they don't actually answer the problem...!
I had assumed that it was the
students which didn't matter, not the rooms...
Anyway, applying the same factorials-based combinatorial calculus in method 1 above, I get 28 different distributions for 6.1.1, 168 for 5.2.1, 280 for 4.3.1, 420 for 4.2.2 and 560 for 3.3.2, for a grand total of
1484.
(You get 5796 if both the students and the rooms matter, 21 if the rooms matter and the students don't, and 5 if neither of them matters.)
I still don't know where the 966 comes from, I'm afraid...
Cheers,
J.