Daily

Random

Practice set

Baltic Way 2025 · Problem 6

Combinatorics

Let n≥3n\ge3 friends play dodgeball. Initially all players are free. When a free player AA knocks out another free player BB, AA imprisons BB and frees all players currently imprisoned by BB. Two knock-outs cannot happen at the same time.

Find the least number of knock-outs after which it is possible that among every two players at least one has freed the other one.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

Games and strategies · Pigeonhole and extremal arguments

Solutions

Solution

The answer is

n(n−1)2+1.\frac{n(n-1)}2+1.

If among every two people one has freed the other at least once, then there have been at least n(n−1)2\frac{n(n-1)}2 liberations. Two liberations of the same person must be preceded by that person being imprisoned twice, because after a person is freed they cannot be freed again before being imprisoned again. Liberations of different people must be preceded by different knock-outs, since one knock-out can imprison only one other person. Thus at least n(n−1)2\frac{n(n-1)}2 knock-outs are needed, plus one more knock-out to free the person imprisoned last. Therefore at least

n(n−1)2+1\frac{n(n-1)}2+1

knock-outs are necessary.

We now show that this many knock-outs are sufficient. First let nn be odd. Label the people by 0,1,…,n−10,1,\ldots,n-1. Let person n−12\frac{n-1}{2} imprison people 0,1,…,n−12−10,1,\ldots,\frac{n-1}{2}-1 during the first n−12\frac{n-1}{2} knock-outs; then let person n−1n-1 imprison people n−12,n−12+1,…,n−2\frac{n-1}{2},\frac{n-1}{2}+1,\ldots,n-2 during the next n−12\frac{n-1}{2} knock-outs, and continue cyclically modulo nn.

In other words, during every knock-out the next person in the cyclic order modulo nn is imprisoned; the imprisoning person changes after every n−12\frac{n-1}{2} knock-outs and then jumps over exactly n−12−1\frac{n-1}{2}-1 people in the cyclic order. Every new imprisoner imprisons the previous imprisoner during their first knock-out and frees everyone imprisoned by the previous imprisoner. Hence shifting the imprisoner by n−12\frac{n-1}{2} is always possible.

After n(n−1)2\frac{n(n-1)}2 knock-outs, person 00 imprisons people n+12,n+12+1,…,n−1\frac{n+1}{2},\frac{n+1}{2}+1,\ldots,n-1, and all other people are free. Finally, let person n−12\frac{n-1}{2} imprison person 00 again. After that, every person has once freed all the n−12\frac{n-1}{2} people immediately following them in the cyclic order. Thus, among every two people, one has freed the other.

Now let nn be even. Denote one person by CC. Apply the programme above for odd nn to the other n−1n-1 people, but at the end of the series of knock-outs organized by each person, add one more knock-out in which this person also imprisons CC. During the first knock-out of the next imprisoner, that person frees CC, so CC can be imprisoned again during the last knock-out of the series. In this way there are

(n−1)(n−2)2+1+(n−1)=n(n−1)2+1\frac{(n-1)(n-2)}2+1+(n-1)=\frac{n(n-1)}2+1

knock-outs in total. After that, among every two people, one has freed the other.

Solution 2

For the construction, use Solution 1. We prove the lower bound differently.

Consider the sum of the number of currently imprisoned people and the number of liberations that have occurred so far, counting different people freed in one knock-out independently. This sum increases by exactly 11 during each knock-out. Indeed, let uu be the number of imprisoned people before a knock-out, vv the number of liberations before it, and kk the number of people freed during it. After the knock-out, the number imprisoned is u−k+1u-k+1 and the number of liberations is v+kv+k, for a total of u+v+1u+v+1.

Initially both quantities are 00, so their sum always equals the number of knock-outs. If among every two people one has freed the other at least once, then the number of liberations is at least n(n−1)2\frac{n(n-1)}2 and at least one person is imprisoned, namely the person knocked out last. Hence the sum is at least

n(n−1)2+1,\frac{n(n-1)}2+1,

so at least that many knock-outs have occurred.

Contest context

Results from Baltic Way 2025

11 teams

Mean score
1.8 / 5
Scores of 4 or 5
1 / 11
Estonia
3 / 5

Score distribution

03
10
26
31
40
51
All team scores
TeamScore
Germany2 / 5
Estonia3 / 5
Poland5 / 5
Lithuania0 / 5
Norway2 / 5
Latvia2 / 5
Finland2 / 5
Denmark2 / 5
Sweden2 / 5
Ukraine0 / 5
Iceland0 / 5