Mr. and Mrs. Ivanov invited [tex]4[/tex] married couples to their home. When they met, some of the [tex]10[/tex] people present shook hands; nobody shook hands with his or her own partner, and any two people shook hands at most once. Then Mrs. Ivanova asked each of the other [tex]9[/tex] people how many people he or she had shaken hands with, and received [tex]9[/tex] different answers. How many people did Mrs. Ivanova shake hands with?
Solution:
Nobody shakes hands with himself or with his partner, so each answer is one of the numbers from [tex]0[/tex] to [tex]8[/tex]. The [tex]9[/tex] answers are different, hence they are exactly
[tex]0,1,2,\ldots,8[/tex]
Call the person who answered [tex]j[/tex] “person [tex]j[/tex]”. Person [tex]8[/tex] shook hands with everybody except his or her partner. Person [tex]0[/tex] shook hands with nobody, in particular not with person [tex]8[/tex], so person [tex]0[/tex] is the partner of person [tex]8[/tex]. Both of them were asked, so neither of them is Mrs. Ivanova; and person [tex]8[/tex] is not Mr. Ivanov, because his partner, Mrs. Ivanova, was not asked. Hence persons [tex]8[/tex] and [tex]0[/tex] form one of the guest couples.
Remove this couple. Every remaining person shook hands with person [tex]8[/tex] and not with person [tex]0[/tex], so every remaining count decreases by exactly [tex]1[/tex]. We get the same situation with [tex]3[/tex] guest couples: the [tex]7[/tex] people asked now have the different counts [tex]0,1,\ldots,6[/tex].
Repeating the argument, persons [tex]7[/tex] and [tex]1[/tex], then [tex]6[/tex] and [tex]2[/tex], then [tex]5[/tex] and [tex]3[/tex] form guest couples, and the last person asked, person [tex]4[/tex], is Mr. Ivanov. At each step the person with the largest count shook hands with everybody present except the partner, in particular with Mrs. Ivanova, while the person with count [tex]0[/tex] did not shake hands with her. Mrs. Ivanova did not shake hands with her husband either. Hence she shook hands exactly with persons [tex]8[/tex], [tex]7[/tex], [tex]6[/tex] and [tex]5[/tex], i.e. with [tex]4[/tex] people.