Maths Olympiad Prep

Library / /309 of 520

Number theory Difficulty 6.6 National olympiad Prove it

For any odd prime pp and any integer nn, let dp(n){0,1,,p1}d_{p}(n) \in\{0,1, \ldots, p-1\} denote the remainder when nn is divided by pp. We say that (a0,a1,a2,)\left(a_{0}, a_{1}, a_{2}, \ldots\right) 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}\left(a_{n}\right) for n0n \geqslant 0.

(a) Do there exist infinitely many primes pp for which there exist pp-sequences (a0,a1,a2,)\left(a_{0}, a_{1}, a_{2}, \ldots\right) and (b0,b1,b2,)\left(b_{0}, b_{1}, b_{2}, \ldots\right) 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,)\left(a_{0}, a_{1}, a_{2}, \ldots\right) and (b0,b1,b2,)\left(b_{0}, b_{1}, b_{2}, \ldots\right) such that a0bna_{0}b_{n} for all n1n \geqslant 1? (United Kingdom)

Solution

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 2 modulo pp. Consider any pp-sequence (xn)=(x0,x1,x2,)\left(x_{n}\right)=\left(x_{0}, x_{1}, x_{2}, \ldots\right). Obviously, xn+12xn(modp)x_{n+1} \equiv 2 x_{n}(\bmod p) and therefore xn2nx0(modp)x_{n} \equiv 2^{n} x_{0}(\bmod p). This yields xn+Txn(modp)x_{n+T} \equiv x_{n}(\bmod p) and therefore d(xn+T)=d(xn)d\left(x_{n+T}\right)=d\left(x_{n}\right) for all n0n \geqslant 0. It follows that the sum d(xn)+d(xn+1)++d(xn+T1)d\left(x_{n}\right)+d\left(x_{n+1}\right)+\ldots+d\left(x_{n+T-1}\right) 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}\left(x_{0}\right), and extend the function Sp()S_{p}(\cdot) to all (not necessarily positive) integers. Therefore, we have xn+kT=xn+kSp(x0)x_{n+k T}=x_{n}+k S_{p}\left(x_{0}\right) for all positive integers nn and kk. Clearly, Sp(x0)=Sp(2tx0)S_{p}\left(x_{0}\right)=S_{p}\left(2^{t} x_{0}\right) for every integer t0t \geqslant 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}\left(2^{i}\right) \quad \text { and } \quad S_{p}^{-}=S_{p}(-1)=\sum_{i=0}^{T-1} d_{p}\left(p-2^{i}\right)
(a) Let q>3q>3 be a prime and pp a prime divisor of 2q+12^{q}+1 that is greater than 3. 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 qq and a0=p1a_{0}=p-1, a1=p+2b0+kSp+=bk2q and ak2q+1=a1+kSp+Sp(y0)a_{1}=p+2b_{0}+k S_{p}^{+}=b_{k \cdot 2 q} \quad \text { and } \quad a_{k \cdot 2 q+1}=a_{1}+k S_{p}^{+}S_{p}\left(y_{0}\right) but x0ynx_{0}y_{n} for every nq+qmax{yrxr:r=0,1,,q1}n \geqslant q+q \cdot \max \left\{y_{r}-x_{r}: r=0,1, \ldots, q-1\right\}. Now, since x0Spx_{0}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.

This page is intentionally left blank

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.