Solution:
From the assumption it follows that the smallest of the numbers a1,a2,…,a2022 is at least 1, the second smallest is at least 2, and so on up to the 2022-th, which must be at least 2022. If we now successively replace the numbers a1,…,a2022, in order of size, by 1,2,…,2022, then the sum from the problem statement does not increase. We thus see that we may restrict ourselves to the case where (a1,a2,…,a2022) are pairwise distinct positive integers. Now we replace 2022 by an arbitrary positive integer k and claim that the smallest value s(k) that the sum
⌊1a1⌋+⌊2a2⌋+⋯+⌊kak⌋
can take, when a1,a2,…,ak are pairwise distinct positive integers, is exactly ⌊log2(k)⌋.
- Lower bound: Since m is clearly monotonically increasing, it suffices to show that m(2t)≥t holds. The case t=0 is clear, for t>0 we use complete induction and thus assume m(2t−1)≥t−1 as known. Let a1,a2,…,a2t be arbitrary pairwise distinct positive integers. Then the maximum ai of these numbers is at least 2t. If i>2t−1, then we have
⌊1a1⌋+⌊2a2⌋+⋯+⌊2ta2t⌋≥⌊1a1⌋+⌊2a2⌋+⋯+⌊2t−1a2t−1⌋+⌊iai⌋≥m(2t−1)+1=t−1+1=t
If, however, i≤2t−1, then the set X={1,2,…,2t−1}∖{a1,a2,…,a2t−1} is nonempty. Let b∈X be arbitrary. Then ai≥2t=2t−1+2t−1≥b+i holds, so that
⌊1a1⌋+⌊2a2⌋+⋯+⌊2ta2t⌋≥⌊1a1⌋+⋯+⌊ib+i⌋+⋯+⌊2t−1a2t−1⌋≥m(2t−1)+1=t−1+1=t
- Upper bound: We set
ai={i−1,2s+1−1,if i is not a power of two,if i=2s.
Then a1,a2,…,ak are pairwise distinct positive integers and we have
⌊iai⌋={0,1if i is not a power of two,otherwise.
hence it follows that ⌊1a1⌋+⌊2a2⌋+⋯+⌊kak⌋=⌊log2(k)⌋.
Applying this to the concrete situation of the problem statement, we obtain that the smallest value that the given sum can take is equal to ⌊log2(2022)⌋=11.