A dance with 2018 couples takes place in Havana. For the dance, 2018 distinct points labeled $0, 1,\ldots, 2017$ are marked in a circumference and each couple is placed on a different point. For $i\geq1$, let $s_i=i\ (\textrm{mod}\ 2018)$ and $r_i=2i\ (\textrm{mod}\ 2018)$. The dance begins at minute $0$. On the $i$-th minute, the couple at point $s_i$ (if there's any) moves to point $r_i$, the couple on point $r_i$ (if there's any) drops out, and the dance continues with the remaining couples. The dance ends after $2018^2$ minutes. Determine how many couples remain at the end. Note: If $r_i=s_i$, the couple on $s_i$ stays there and does not drop out.
Problem
Source: 2018 Centroamerican and Caribbean Math Olympiad
Tags: combinatorics, Centroamerican
26.06.2018 03:49
Neat problem!
Hidden per request @below
26.06.2018 04:20
I also enjoyed solving this problem. @MathStudent2002 Nice solution, just next time use Hidden Text, especially with the answer.
28.06.2018 04:54
Your solution is obviously wrong, since the 0 pair always stays in the same position
29.06.2018 02:58
I think the $0$ pair drop out on the $i=1009$ minute, so the answer is not incorrect. @below still false
29.06.2018 10:25
Muriatic wrote: I think the $0$ pair drop out on the $i=1009$ minute, so the answer is not incorrect. What MexicOMM is saying is that the point $0$ is never empty, I think that you misunderstood the problem.
21.08.2018 22:55
22.08.2018 07:21
There's a mistake in the statement of the problem, which unfortunately wasn't caught and made it into the test. In the intended process the couple at point $r_i$ only drops out when there does exist a couple at point $s_i$ to replace it.