Maths Olympiad Prep

Track / Stage 6 / 305 of 400 #1945 of 2604

Problem 1945

National Olympiad, first round
Algebra Difficulty 6.6 Prove it South African Mathematical Olympiad Third Round · South Africa

A positive integer kk is said to be visionary if there are integers a>0a > 0 and b≥0b \ge 0 such that a⋅k+b⋅(k+1)=2020a \cdot k + b \cdot (k+1) = 2020. How many visionary integers are there?

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

All lower case variables in this solution denote integers. Let XX denote the set of visionary integers. We show that X={⌊2020n⌋:1≤n≤2020}X = \{\lfloor \frac{2020}{n} \rfloor : 1 \le n \le 2020\}.

If kk is a visionary integer, then there exist a>0a > 0 and b≥0b \ge 0 such that ak+b(k+1)=2020a k + b(k + 1) = 2020, i.e., 2020=k(a+b)+b2020 = k(a + b) + b, where 0≤b<a+b0 \le b < a + b. This implies that k=⌊2020a+b⌋k = \lfloor \frac{2020}{a+b} \rfloor and we also have 1≤a+b≤20201 \le a + b \le 2020, since a≥1a \ge 1 and k≥1k \ge 1. Hence k∈Xk \in X. Conversely, let k∈Xk \in X, i.e., k=⌊2020n⌋k = \lfloor \frac{2020}{n} \rfloor for some 1≤n≤20201 \le n \le 2020. Then 2020=kn+r2020 = k n + r, where 0≤r<n0 \le r < n. Put b=rb = r and a=n−ra = n - r. Then a>0a > 0 and b≥0b \ge 0, and we see that ak+b(k+1)=2020a k + b(k + 1) = 2020, i.e., kk is visionary.

In order to solve the problem, we need to find the cardinality of the set XX. To this end, write XX as the disjoint union of X1={⌊2020n⌋:1≤n<2020}X_1 = \{\lfloor \frac{2020}{n} \rfloor : 1 \le n < \sqrt{2020}\} and X2={⌊2020n⌋:2020<n≤2020}X_2 = \{\lfloor \frac{2020}{n} \rfloor : \sqrt{2020} < n \le 2020\}. (Note that 2020 is not a square.) Also, since the smallest element of X1X_1 is ⌊2020⌊2020⌋⌋=⌊202044⌋=45\lfloor \frac{2020}{\lfloor \sqrt{2020} \rfloor} \rfloor = \lfloor \frac{2020}{44} \rfloor = 45, and the largest element of X2X_2 is ⌊2020⌊2020⌋+1⌋=⌊202045⌋=44\lfloor \frac{2020}{\lfloor \sqrt{2020} \rfloor+1} \rfloor = \lfloor \frac{2020}{45} \rfloor = 44, the sets X1X_1 and X2X_2 are indeed disjoint.

Let 1≤n1<n2≤⌊2020⌋1 \le n_1 < n_2 \le \lfloor \sqrt{2020} \rfloor. If ⌊2020n1⌋=⌊2020n2⌋\lfloor \frac{2020}{n_1} \rfloor = \lfloor \frac{2020}{n_2} \rfloor, then 0<2020n1−2020n2<10 < \frac{2020}{n_1} - \frac{2020}{n_2} < 1, implying that 0<n2−n1<10 < n_2 - n_1 < 1, an impossibility. This shows that X1X_1 has exactly ⌊2020⌋=44\lfloor \sqrt{2020} \rfloor = 44 elements.

Next, consider any nn such that 1≤n≤⌊2020⌋1 \le n \le \lfloor \sqrt{2020} \rfloor. We show that there exists a qq, where 2020<q≤2020\sqrt{2020} < q \le 2020, such that ⌊2020q⌋=n\lfloor \frac{2020}{q} \rfloor = n. By the Division Algorithm, there exist (unique) qq and rr such that 2020=qn+r2020 = q n + r, where 0≤r<n0 \le r < n. Now if q≤⌊2020⌋q \le \lfloor \sqrt{2020} \rfloor, then 2020=qn+r<qn+n=n(q+1)≤⌊2020⌋⋅(⌊2020⌋+1)=44⋅45=19802020 = q n + r < q n + n = n(q+1) \le \lfloor \sqrt{2020} \rfloor \cdot (\lfloor \sqrt{2020} \rfloor + 1) = 44 \cdot 45 = 1980, a contradiction. So we have 2020<q≤2020\sqrt{2020} < q \le 2020. Moreover, n=⌊2020q⌋n = \lfloor \frac{2020}{q} \rfloor, as 2020=nq+r2020 = n q + r, where 0≤r<n<q0 \le r < n < q. Finally, if 2020<n≤2020\sqrt{2020} < n \le 2020, then 1≤2020n<20201 \le \frac{2020}{n} < \sqrt{2020}, so that also 1≤⌊2020n⌋<20201 \le \lfloor \frac{2020}{n} \rfloor < \sqrt{2020}, i.e., all elements of X2X_2 lie in the interval [1,⌊2020⌋][1, \lfloor \sqrt{2020} \rfloor]. This shows that ∣X2∣=∣X1∣|X_2| = |X_1|, and we conclude that ∣X∣=∣X1∣+∣X2∣=44+44=88|X| = |X_1| + |X_2| = 44 + 44 = 88.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.