Mr.Hollywood wrote:Thank you it's great. Although I'm not so sure about the "This sum counts "doublers" twice" part. Can you demonstrate a little further regarding the doublers? I do understand the triplers.
OK, let's be concrete.
Let's say:
A is taking Math
B is taking Math
C is taking English
D is taking PE
E is taking PE
F is taking Math and English
G is taking Math and English
H is taking Math and PE
I is taking Math and PE
J is taking English and PE
K is taking Math, English, and PE
L is taking Math, English, and PE
Here, I have marked the "singletons" in purple, the doublers in green, and the triplers in red.
Who is in Math? A, B, F, G, H, I, K, and L ---> 8 people
Who is in English? C, F, G, J, K, and L ---> 6 people
Who is in PE? D, E, H, I, J, K, and L ---> 7 people
8 + 6 + 7 = 21
That sum of 21 counts the two triplers (K & L) three time --- they are included on all three lines of the sums. The sum of 21 counts the 5 doublers (F, G, H, I, and J) each twice --- each one of those is included on two of the three lines of sums.
Thus (5 singletons) + 2*(five doublers) + 3*(two triplers) = 5 + 2*5 + 3*6 = 21
Does this make sense?
Mike
