Hi Geno, let's see if i get the same :)
How many subsets of the set {1,2,...,11} have median 6?
1 2 3 4 5 6 7 8 9 10 11
The 6 is included
1+(5C4)^2+(5C3)^2+(5C2)^2+(5C1)^1+1
= 1+5^2 +10^2 +10^2 + 5^2 +1
= 1+25+100+100+25+1
=252
6 not included but 5 and 7 both included
(4C4)^2+(4C3)^2+(4C2)^2+(4C1)^2+4C0)^2
=1 +4^2 +6^2 +4^2 +1
=1+16+36+16+1
=70
5,6, and 7 not included but 4 and 8 inlcuded
(3C3)^2+(3C2)^3+(3C1)^2+(3C0)^2
=1+9+9+1
=20
4,5,6,7,8 not included but 3 and 9 included
(2C2)^2+(2C1)^2+(2C0)^2
=1+4+1
=6
3,4,5,6,7,8,9 not included but 2 and 10 included
1+1
= 2
2,3,4,5,6,7,8,9,10 not included but 1 and 11 included
=1
252+70+20+6+2+1 = 351