MathDB
Number of same colored numbers

Source: Kyiv City MO 2021 Round 1, Problem 9.4

December 21, 2023
combinatorics

Problem Statement

You are given a positive integer kk and not necessarily distinct positive integers a1,a2,a3,,aka_1, a_2 , a_3 , \ldots, a_k. It turned out that for any coloring of all positive integers from 11 to 20212021 in one of the kk colors so that there are exactly a1a_1 numbers of the first color, a2a_2 numbers of the second color, \ldots, and aka_k numbers of the kk-th color, there is always a number x{1,2,,2021}x \in \{1, 2, \ldots, 2021\}, such that the total number of numbers colored in the same color as xx is exactly xx. What are the possible values of kk?
Proposed by Arsenii Nikolaiev