Maths Olympiad Prep

Library / Chinese Mathematical Olympiad /2 of 17

Chinese Mathematical Olympiad

Number theory Difficulty 5.3 AIME, harder Prove it China

Given an integer k≥3k \ge 3 and a sequence {an}\{a_n\} that satisfies ak=2ka_k = 2k and for each n>kn > k,
an={an−1+1,if an−1 and n are coprime,2n,otherwise. a_n = \begin{cases} a_{n-1} + 1, & \text{if } a_{n-1} \text{ and } n \text{ are coprime,} \\ 2n, & \text{otherwise.} \end{cases}
Prove that an−an−1a_n - a_{n-1} is a prime for infinitely many nn. (Posed by Zhu Huawei)

Solution

Suppose that al=2la_l = 2l, l≥kl \ge k. Let pp be the least prime divisor of k−1k-1. Then (l−1,i)={1,1≤i<p,p,i=p,(l-1, i) = \begin{cases} 1, & 1 \le i < p, \\ p, & i = p, \end{cases} and thus
(2l+i−2,l+i−1)={1,1≤i<p,p,i=p. (2l + i - 2, l + i - 1) = \begin{cases} 1, & 1 \le i < p, \\ p, & i = p. \end{cases}
From (1) we know that
al+i−1={2l+i−1,1≤i<p,2l+2p−2,i=p. a_{l+i-1} = \begin{cases} 2l + i - 1, & 1 \le i < p, \\ 2l + 2p - 2, & i = p. \end{cases}
Then al+p−1−al+p−2=(2l+2p−2)−(2l+p−2)=pa_{l+p-1} - a_{l+p-2} = (2l+2p-2) - (2l+p-2) = p is a prime number, al+p−1=2(l+p−1)a_{l+p-1} = 2(l+p-1). From the discussion above, we know that there are infinitely many l≥kl \ge k, such that al=2la_l = 2l and al+p−1−al+p−2=pa_{l+p-1} - a_{l+p-2} = p is the least prime divisor of l−1l-1.

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.