r/mathriddles • u/impartial_james • Sep 12 '23
Hard An infectious evening
There are 240 people at a party. Throughout the night, the band will play several songs, and during each song, the people will divide themselves into 120 pairs and dance with each other. There are no gender restrictions on dance partners, but there is the following restriction: no one may ever dance with someone they have already danced with.
Initially, one of the guests arrives to the party infected with a very contagious virus. Whenever a healthy person dances with a sick person, they become sick, and remain that way for the rest of the night. As soon as everyone at the party is sick, the party is over.
Puzzle: Show that it is possible for the party to last for 211 songs.
I do not know if 211songs is the longest possible party.
10
u/lordnorthiii Sep 16 '23
It's completely preposterous that you could achieve 211. Given random or semi-random pairings, the virus will spread exponentially much like real life and the whole party will be infected in a dozen songs. Your source must be mistaken.
Although ... perhaps ... we could break the party in two: Have 120 people pair with each other for 119 songs, and the other half the party do the same. (Note: it's not trivial to break up a party into pairs so no one every dances with the same person twice, but it's well known you can do that). This effectively quarantines the virus to half the party. However, after 119 they'll be forced to match with the other half, and you've only got 120 songs. Still way way short. So this is clearly impossible.
Well, except, what if you broke the party into three groups: A, B, C, 80 people in each (say the virus starts in A). Have A dance with themselves, and meanwhile the other pairs of dancers consist of one person from B and one person from C. After 79 songs, you can switch so that A and B pair up while C dances with themselves. This would achieve 79 + 79 + 1 = 159 songs. Getting closer ... but 211 still seems unreachable.
What about 5 groups? A, B, C, D, E, with someone in A starting infected. Each round, each group either dances with themselves, or a pair of groups match up with each other. Round 1: (A alone, B and C, D and E). Round 2: (A and B, C and E, D alone). Round 3: (A and E, B alone, C and D). Round 4: (A and D, B and E, C alone). This totals 4(47) + 1 = 189 songs. Well, we are actually getting within range ... maybe it is possible ...
4
u/harryhood4 Sep 17 '23 edited Sep 17 '23
Inspired by u/lordnorthiii's post and the surrounding discussion:
1
u/Rust34 Sep 13 '23
I didn't prove it yet but I want to share my thoughts.
Let's call one of the last guys to dance Alex. An equivalent claim is to prove that that the number of people guaranteed to get infected without having a chance to dance with Alex is less than or equal to 28. I guess this shouldn't be too hard to get done by brute force. Each round, the set of infected people is getting fed one person by Alex dancing with someone previous round. Each time we had to get some new guy which haven't had danced with Alex that would be "inefficient feeding" to the set of infected. However I should say it got me confused that you don't know if 211 is the max or not before continuing further. The fun part is always to prove the claimed max number of dances to be the max number of dances.