Maths Olympiad Prep

Library / Iranian Mathematical Olympiad /122 of 270

Iranian Mathematical Olympiad

Number theory Difficulty 6.4 National Olympiad Prove it Iran

kk, nn are two arbitrary positive integers. Prove that there exists at least (k−1)(n−k+1)(k-1)(n-k+1) positive integers that can be produced by nn number of kk's and using only ++, −-, ×\times, ÷\div operations and adding parentheses between them, but cannot be produced using n−1n-1 number of kk's.

Solution

Consider numbers of the form km(ki+j)k^m(k^i + j) for i∈{1,…,n−k+1}i \in \{1, \dots, n-k+1\}, j∈{1,…,k−1}j \in \{1, \dots, k-1\} and m≥0m \ge 0.
Note that for such ii and jj in these intervals, we have i+j≤ni + j \le n. Based on n−(i+j)n - (i + j) is an odd number or an even number, we have two cases.

* If n−(i+j)n - (i + j) is odd, there is some integer t≥0t \ge 0 such that
n−(i+j)=2t+1. n - (i + j) = 2t + 1.
In this case, the number ki+jk^i + j can be represented using nn number of kk's as
ki+j=(k×⋯×k)⏟i+t÷(k×⋯×k)⏟t+(k+⋯+k)⏟j÷k. k^i + j = \underbrace{(k \times \dots \times k)}_{i+t} \div \underbrace{(k \times \dots \times k)}_{t} + \underbrace{(k + \dots + k)}_{j} \div k.

* If n−(i+j)n - (i + j) is even, there is some integer t≥0t \ge 0 such that
n−(i+j)=2t. n - (i + j) = 2t.
In this case, the number k(ki+j)k(k^i + j) can be shown using nn number of kk's as
k(ki+j)=k×((k×⋯×k))⏟i+t−1÷(k×⋯×k)⏟t−1+(k+⋯+k)⏟j÷k. k(k^i + j) = k \times \underbrace{((k \times \dots \times k))}_{i+t-1} \div \underbrace{(k \times \dots \times k)}_{t-1} + \underbrace{(k + \dots + k)}_{j} \div k.
(In case when t=0t = 0, we have t−1=−1t - 1 = -1, so in the above equation, instead of multiplying the parentheses to −1-1 kk's, we divide it by one kk.)

So in both cases, there is m≥0m \ge 0 such that km(ki+j)k^m(k^i + j) can be represented using nn number of kk's. Set mm to be the largest number such that km(ki+j)k^m(k^i + j) can be represented using only nn number of kk's (for fixed ii and jj). There are a total of (n−k+1)(k−1)(n-k+1)(k-1) numbers created with given properties. We prove that they are all distinct numbers and also cannot be represented using n−1n-1 number of kk's.

If some number u=km(ki+j)u = k^m(k^i + j) can be shown using n−1n-1 number of kk's, then clearly k×u=km+1(ki+j)k \times u = k^{m+1}(k^i + j) has a representation, using nn number of kk's, therefore mm cannot be the largest number such that km(ki+j)k^m(k^i + j) has a representation using nn number of kk's, so we conclude that it is impossible to reach these numbers with only n−1n-1 number of kk's.

Finally, if for two such triples (i1,j1,m1)≠(i2,j2,m2)(i_1, j_1, m_1) \ne (i_2, j_2, m_2) with m1≥m2m_1 \ge m_2, we have
km1(ki1+j1)=km2(ki2+j2), k^{m_1} (k^{i_1} + j_1) = k^{m_2} (k^{i_2} + j_2),
then
km1−m2(ki1+j1)=ki2+j2. k^{m_1 - m_2} (k^{i_1} + j_1) = k^{i_2} + j_2.

But if m1−m2>0m_1 - m_2 > 0, the above equation implies k∣j2k \mid j_2, which is impossible because j2<kj_2 < k. Therefore m1=m2m_1 = m_2 and so ki1+j1=ki2+j2k^{i_1} + j_1 = k^{i_2} + j_2. Without loss of generality, we assume i1≥i2i_1 \ge i_2. So
ki2(ki1−i2−1)=j2−j1. k^{i_2} (k^{i_1 - i_2} - 1) = j_2 - j_1.
Again, if i1>i2i_1 > i_2, we get k∣j2−j1k \mid j_2 - j_1. Note that j1,j2∈{1,…,k−1}j_1, j_2 \in \{1, \dots, k-1\}, therefore −k<∣j1−j2∣<k-k < |j_1 - j_2| < k, so we must have j1−j2=0j_1 - j_2 = 0 and thus ki1=ki2k^{i_1} = k^{i_2} which means i1=i2i_1 = i_2, that is impossible in this case because we assumed that i1>i2i_1 > i_2. The only possible case is when i1=i2i_1 = i_2 which leads to j1=j2j_1 = j_2. Therefore (i1,j1,m1)=(i2,j2,m2)(i_1, j_1, m_1) = (i_2, j_2, m_2), contradiction. So indeed, all of the created numbers are distinct and hence the claim of the problem. ■

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

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