Maths Olympiad Prep

Library / /367 of 397

, 2021

Number theory Difficulty 7.1 National Olympiad, round 2 Prove it Taiwan

For any odd prime pp and any integer nn, let dp(n){0,1,...,p1}d_p(n) \in \{0, 1, ..., p-1\} denote the remainder when nn is divided by pp. We say that (a0,a1,a2,...)(a_0, a_1, a_2, ...) is a pp-sequence, if a0a_0 is a positive integer coprime to pp, and an+1=an+dp(an)a_{n+1} = a_n + d_p(a_n) for n0n \ge 0.
(a) Do there exist infinitely many primes pp for which there exist pp-sequences (a0,a1,a2,...)(a_0, a_1, a_2, ...) and (b0,b1,b2,...)(b_0, b_1, b_2, ...) such that an>bna_n > b_n for infinitely many nn, and bn>anb_n > a_n for infinitely many nn?
(b) Do there exist infinitely many primes pp for which there exist pp-sequences (a0,a1,a2,...)(a_0, a_1, a_2, ...) and (b0,b1,b2,...)(b_0, b_1, b_2, ...) such that a0<b0a_0 < b_0 but an>bna_n > b_n for all n1n \ge 1?

Solution

Answer: Yes, for both parts.

Fix some odd prime pp, and let TT be the smallest positive integer such that p2T1p \mid 2^T - 1; in other words TT is the multiplicative order of 22 modulo pp.

Consider any pp-sequence (xn)=(x0,x1,x2,)(x_n) = (x_0, x_1, x_2, \dots). Obviously, xn+12xn(modp)x_{n+1} \equiv 2x_n \pmod p and therefore xn2nx0(modp)x_n \equiv 2^n x_0 \pmod p. This yields xn+Txn(modp)x_{n+T} \equiv x_n \pmod p and therefore d(xn+T)=d(xn)d(x_{n+T}) = d(x_n) for all n0n \ge 0. It follows that the sum d(xn)+d(xn+1)++d(xn+T1)d(x_n)+d(x_{n+1})+\dots+d(x_{n+T-1}) does not depend on nn and is thus a function of x0x_0 and pp only; we shall denote this sum by Sp(x0)S_p(x_0), and extend the function Sp()S_p(\cdot) to all (not necessarily positive) integers. Therefore, we have xn+kT=xn+kSp(x0)x_{n+kT} = x_n + kS_p(x_0) for all positive integers nn and kk. Clearly, Sp(x0)=Sp(2tx0)S_p(x_0) = S_p(2^t x_0) for every integer t0t \ge 0.

In both parts, we use the notation
Sp+=Sp(1)=i=0T1dp(2i) and Sp=Sp(1)=i=0T1dp(p2i) S_p^+ = S_p(1) = \sum_{i=0}^{T-1} d_p(2^i) \text{ and } S_p^- = S_p(-1) = \sum_{i=0}^{T-1} d_p(p - 2^i)

a.
Let q>3q > 3 be a prime and pp a prime divisor of 2q+12^q + 1 that is greater than 33. We will show that pp is suitable for part (a). Notice that 92q+19 \nmid 2^q + 1, so that such a pp exists. Moreover, for any two odd primes q<rq < r we have gcd(2q+1,2r+1)=2gcd(q,r)+1=3\gcd(2^q + 1, 2^r + 1) = 2^{\gcd(q,r)} + 1 = 3, thus there exist infinitely many such primes pp.

For the chosen pp, we have T=2qT = 2q. Since 2q1(modp)2^q \equiv -1 \pmod p, we have Sp+=SpS_p^+ = S_p^-. Now consider the pp-sequences (an)(a_n) and (bn)(b_n) with a0=p+1a_0 = p+1 and b0=p1b_0 = p-1; we claim that these sequences satisfy the required conditions. We have a0>b0a_0 > b_0 and

ak2q=a0+kSp+>b0+kSp+=bk2q and ak2q+1=a1+kSp+<b1+kSp+=bk2q+1 a_{k \cdot 2q} = a_0 + kS_p^+ > b_0 + kS_p^+ = b_{k \cdot 2q} \text{ and } a_{k \cdot 2q+1} = a_1 + kS_p^+ < b_1 + kS_p^+ = b_{k \cdot 2q+1}
for all k=0,1,k = 0, 1, \dots, as desired.

b.
Let qq be an odd prime and pp a prime divisor of 2q12^q - 1; thus we have T=qT = q. We will show that pp is suitable for part (b). Notice that the numbers of the form 2q12^q - 1 are pairwise coprime (since gcd(2q1,2r1)=2gcd(q,r)1=1\gcd(2^q - 1, 2^r - 1) = 2^{\gcd(q,r)} - 1 = 1 for any two distinct primes qq and rr), thus there exist infinitely many such primes pp. Notice that dp(x)+dp(px)=pd_p(x) + d_p(p-x) = p for all xx with pxp \nmid x, so that the sum Sp++Sp=pqS_p^+ + S_p^- = pq is odd, which yields Sp+=Sp(1)Sp(1)=SpS_p^+ = S_p(1) \neq S_p(-1) = S_p^-. Assume that (xn)(x_n) and (yn)(y_n) are two pp-sequences with Sp(x0)>Sp(y0)S_p(x_0) > S_p(y_0) but x0<y0x_0 < y_0. The first condition yields that
xMq+ryMq+r=(xryr)+M(Sp(x0)Sp(y0))(xryr)+M x_{M_{q+r}} - y_{M_{q+r}} = (x_r - y_r) + M(S_p(x_0) - S_p(y_0)) \geq (x_r - y_r) + M
for all nonnegative integers MM and every r=0,1,,q1r = 0, 1, \dots, q-1. Thus, we have xn>ynx_n > y_n for every nq+qmax{yrxr:r=0,1,,q1}n \ge q + q \cdot \max\{y_r - x_r : r = 0, 1, \dots, q-1\}. Now, since x0<y0x_0 < y_0, there exists the target n0n_0 with xn0<yn0x_{n_0} < y_{n_0}. In this case the pp-sequences an=xnn0a_n = x_{n-n_0} and bn=ynn0b_n = y_{n-n_0} possess the desired property (notice here that xnynx_n \neq y_n for all n0n \ge 0, as otherwise we would have Sp(x0)=Sp(xn)=Sp(yn)=Sp(y0)S_p(x_0) = S_p(x_n) = S_p(y_n) = S_p(y_0)).

It remains to find pp-sequences (xn)(x_n) and (yn)(y_n) satisfying the two conditions. Recall that Sp+SpS_p^+ \neq S_p^-. Now if Sp+>SpS_p^+ > S_p^-, then we can put x0=1x_0 = 1 and y0=p1y_0 = p-1. Otherwise, if Sp+<SpS_p^+ < S_p^-, then we put x0=p1x_0 = p-1 and y0=p+1y_0 = p+1.

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 translated into English from zh; metadata (topic, difficulty) added by this project.