Find the greatest integer k≤2023 for which the following holds: whenever Alice colours exactly k numbers of the set {1,2,…,2023} in red, Bob can colour some of the remaining uncoloured numbers in blue, such that the sum of the red numbers is the same as the sum of the blue numbers.
Romania
Official solution
1. Define the problem and variables: Let n=2023 and t=kmax be the required maximum. We need to find the greatest integer k≤2023 such that whenever Alice colors exactly k numbers of the set {1,2,…,2023} in red, Bob can color some of the remaining uncolored numbers in blue, such that the sum of the red numbers is the same as the sum of the blue numbers.
2. Sum of the set: The sum of the first n natural numbers is given by: S=2n(n+1) For n=2023: S=22023⋅2024=2023⋅1012
3. Condition for sums: If Alice colors t highest numbers, their sum should be less than half of the sum of all numbers, which is: 4n(n+1) Otherwise, Bob cannot find a subset of the remaining numbers that sums to the same value. Therefore, we need: t(n−t)+2t(t+1)≤4n(n+1)
4. Simplify the inequality: t(n−t)+2t(t+1)≤4n(n+1) t2−t(2n+1)+2n(n+1)≥0
5. Solve the quadratic inequality: The solutions to the quadratic equation: t2−t(2n+1)+2n(n+1)=0 are given by: t1,2=2(2n+1)±(2n+1)2−2n(n+1) Simplifying the discriminant: (2n+1)2−2n(n+1)=4n2+4n+1−2n2−2n=2n2+2n+1 Thus: t1,2=2(2n+1)±2n2+2n+1
6. **Determine the valid range for t:** Since t≤n, we consider the smaller root: t≤2(2n+1)−2n2+2n+1 Let: t0=⌊2(2n+1)−2n2+2n+1⌋
7. **Verify the maximum t0:** We need to show that t0 is the required maximum. We assume Alice chooses t0 numbers with sum s. Bob needs to find some remaining numbers with sum s or 2n(n+1)−2s.
8. Bob's strategy: Bob can write s0=a(n+1)+b where 0≤b≤n. If a≥1, Bob searches for pairs of numbers summing to b or n+1+b and colors them in blue. He then searches for pairs summing to n+1 and colors them in blue.
9. Conclusion: By verifying the conditions and strategies, we find that the maximum t satisfying the conditions is: t0=⌊2(2⋅2023+1)−2⋅20232+2⋅2023+1⌋
The final answer is 673.
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.