Maths Olympiad Prep

Library / /137 of 299

Number theory Difficulty 6.4 National Olympiad Prove it Iran

kk, nn are two arbitrary positive integers. Prove that there exists at least (k1)(nk+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 n1n-1 number of kk's.

Solution

Consider numbers of the form km(ki+j)k^m(k^i + j) for i{1,,nk+1}i \in \{1, \dots, n-k+1\}, j{1,,k1}j \in \{1, \dots, k-1\} and m0m \ge 0.
Note that for such ii and jj in these intervals, we have i+jni + 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 t0t \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 t0t \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+t1÷(k××k)t1+(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 t1=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 m0m \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 (nk+1)(k1)(n-k+1)(k-1) numbers created with given properties. We prove that they are all distinct numbers and also cannot be represented using n1n-1 number of kk's.

If some number u=km(ki+j)u = k^m(k^i + j) can be shown using n1n-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 n1n-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 m1m2m_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
km1m2(ki1+j1)=ki2+j2. k^{m_1 - m_2} (k^{i_1} + j_1) = k^{i_2} + j_2.

But if m1m2>0m_1 - m_2 > 0, the above equation implies kj2k \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 i1i2i_1 \ge i_2. So
ki2(ki1i21)=j2j1. k^{i_2} (k^{i_1 - i_2} - 1) = j_2 - j_1.
Again, if i1>i2i_1 > i_2, we get kj2j1k \mid j_2 - j_1. Note that j1,j2{1,,k1}j_1, j_2 \in \{1, \dots, k-1\}, therefore k<j1j2<k-k < |j_1 - j_2| < k, so we must have j1j2=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,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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