The numbers $1,2,\cdots,2021$ are arranged in a circle. For any $1 \le i \le 2021$, if $i,i+1,i+2$ are three consecutive numbers in some order such that $i+1$ is not in the middle, then $i$ is said to be a good number. Indices are taken mod $2021$. What is the maximum possible number of good numbers? CSJL
Problem
Source: IMOC 2021 C1
Tags: combinatorics, IMOC
13.08.2021 11:50
I did not get 7 on C1 during the camp, but I can solve it now. Here's the solution (close to the official solution) Arrange the number like this: 1,3,2,4,6,5,7,9,8,...,2020,2019,2021 This way, everything but 2021 and the multiple of 3 are good numbers. We go on by proving there could not be 3 adjacent numbers that are good. Proof: let n, n+1, and n+2 are all good numbers, then it must arrange in one of the four ways. 1. n, n+2, n+1 In this case, n+3 must be next to n+1, and n+2 would not be a good number, leading to a paradox. 2. n+2, n, n+1 In this case, n+1 isn't a good number (cause it's not next to n+2 and n+3 is not in between), causing a paradox. 3. n+1, n, n+2 In this case, n+1 isn't a good number (reason same as above), causing a paradox. 4. n+1, n+2, n In this case, n+2 can't be a good number (same as the first case) So, we're done proving that there couldn't be 3 adjacent good numbers. This way, we know all multiple of 3 won't be a good number, so we couldn't do better than the arrangement shown before, which would have 1346 good numbers. (I forgot to eliminate the number 2021 during the camp, and I got a 5 ) (sorry for my bad grammar and not putting LaTeX)
25.08.2021 13:44
I get the same answer, but I don't quite follow your solution. You have proved that no $3$ consecutive good numbers. If we replace $2021$ by $n$, the proof goes like: If $n \equiv 0 \pmod 3$, we can group numbers into triples, so there are at most $\tfrac{2n}{3}$ good numbers. If $n \equiv 1 \pmod 3$, we can first find a bad number, then group the remaining $n-1$ numbers into triples, so there are at most $\tfrac{2(n-1)}{3}$ good numbers. But for $n \equiv 2 \pmod 3$ ( $2021$ is the case), I don't think you can say $\tfrac{2(n-2)}{3}$ directly. My solution involves messy (but not hard) local analysis on the structure of numbers if $2$ out of $3$ consecutive numbers are good. I would post it if needed.
09.09.2021 17:50
By doing the casework as #1 did, we show that there can be atmost $2$ good numbers within three consecutive numbers. To handle $2021$,we see by this logic that since $1,2$ are good ,it can't be good. Thus we get that the number of good numbers $\le 2* 673$. Now,we show the straightforward construction $1 , 3 ,2, 4 , 6, 5, 7...2020 , 2019, 2021$. hence,the maximum number of good numbers is $1346$.
10.09.2023 13:30