Let I(Ex) denote the initial number of students in elective Ex, and F(Ex) denote the final number of students after the first reshuffle. I(Ex) is the sum of row x in the table, and F(Ex) is the sum of column x. The missing values in the table are known to be either 0 or 1.
First, we determine the initial number of students for each elective using the given information.
From the table, we can sum the rows for E1 and E7:
I(E1) = 9 + 5 + 10 + 1 + 4 + 2 = 31
I(E7) = 4 + 16 + 30 + 5 + 5 + 41 = 101
Using the given conditions:
I(E1) = I(E4) + 6
31 = I(E4) + 6 I(E4) = 25I(E4) = I(E6) + 2
25 = I(E6) + 2 I(E6) = 23F(E2) = I(E2) + 30
F(E2) is the sum of the E2 column:
5 + 34 + 6 + 3 + 5 + 7 + 16 = 76.
76 = I(E2) + 30 I(E2) = 46I(E2) = I(E3) + 10
46 = I(E3) + 10 I(E3) = 36The total number of students is 300. We can find I(E5):
I(E1) + I(E2) + I(E3) + I(E4) + I(E5) + I(E6) + I(E7) = 300
31 + 46 + 36 + 25 + I(E5) + 23 + 101 = 300
262 + I(E5) = 300
I(E5) = 38
Now, we can determine the missing values in the table. Let M(Ei, Ej) be the number of students moving from Ei to Ej.
Row E2: I(E2) = M(E2,E1) + 34 + 8 + M(E2,E4) + 2 + 2 = 46. This gives M(E2,E1) + M(E2,E4) = 0. Since values are 0 or 1, M(E2,E1) = 0 and M(E2,E4) = 0.
Row E4: I(E4) = M(E4,E1) + 3 + 2 + 14 + M(E4,E5) + 4 = 25. This gives M(E4,E1) + M(E4,E5) = 2. Thus, M(E4,E1) = 1 and M(E4,E5) = 1.
Row E6: I(E6) = M(E6,E1) + 7 + 3 + M(E6,E4) + 2 + 9 = 23. This gives M(E6,E1) + M(E6,E4) = 2. Thus, M(E6,E1) = 1 and M(E6,E4) = 1.
Next, we use the condition F(E4) = F(E1) + 3.
F(E1) = 9 + M(E2,E1) + 2 + M(E4,E1) + M(E5,E1) + M(E6,E1) + 4 = 9+0+2+1+M(E5,E1)+1+4 = 17 + M(E5,E1).
F(E4) = 1 + M(E2,E4) + M(E3,E4) + 14 + M(E5,E4) + M(E6,E4) + 5 = 1+0+M(E3,E4)+14+M(E5,E4)+1+5 = 21 + M(E3,E4) + M(E5,E4).
Substituting into the condition:
21 + M(E3,E4) + M(E5,E4) = (17 + M(E5,E1)) + 3
M(E5,E1) - M(E3,E4) - M(E5,E4) = 1.
Since the variables can only be 0 or 1, the only solution is M(E5,E1) = 1, M(E3,E4) = 0, and M(E5,E4) = 0.
With these values, we can find the remaining missing numbers and then calculate the final enrollments before the re-enrollment rule.
From I(E3)=36, we have M(E3,E4) + M(E3,E5) = 1. Since M(E3,E4)=0, then M(E3,E5)=1.
From I(E5)=38, we have M(E5,E1)+5+M(E5,E3)+M(E5,E4)+30+M(E5,E6) = 38.
1+5+M(E5,E3)+0+30+M(E5,E6) = 38 => M(E5,E3)+M(E5,E6) = 2. Thus, M(E5,E3)=1 and M(E5,E6)=1.
Final enrollments (before re-enrollment):
F(E1) = 17 + M(E5,E1) = 17 + 1 = 18
F(E2) = 76
F(E3) = 10+8+25+2+M(E5,E3)+3+30 = 78 + 1 = 79
F(E4) = 21 + M(E3,E4) + M(E5,E4) = 21 + 0 + 0 = 21
F(E5) = 4+2+M(E3,E5)+M(E4,E5)+30+2+5 = 43 + 1 + 1 = 45
F(E6) = 2+2+2+4+M(E5,E6)+9+41 = 60 + 1 = 61
The college condition states that if enrollment drops below 20, students who left must re-enroll. We see that F(E1) = 18, which is less than 20.
The number of students who left E1 is I(E1) - M(E1,E1) = 31 - 9 = 22. These 22 students must return to E1 from the courses they moved to (5 from E2, 10 from E3, 1 from E4, 4 from E5, 2 from E6).
The new final enrollments are:
F'(E1) = F(E1) + 22 = 18 + 22 = 40
F'(E2) = F(E2) - 5 = 76 - 5 = 71
F'(E3) = F(E3) - 10 = 79 - 10 = 69
F'(E4) = F(E4) - 1 = 21 - 1 = 20
F'(E5) = F(E5) - 4 = 45 - 4 = 41
F'(E6) = F(E6) - 2 = 61 - 2 = 59
The final enrollments are: E1=40, E2=71, E3=69, E4=20, E5=41, E6=59.
Arranging these in decreasing order:
- E2 (71)
- E3 (69)
- E6 (59)
- E5 (41)
- E1 (40)
- E4 (20)
The correct sequence is E2, E3, E6, E5, E1, E4.