Maths Olympiad Prep

Library / Barcelona Tech Mathcontest /1 of 2

Barcelona Tech Mathcontest

Number theory Difficulty 5.8 AIME, harder Prove it Spain

Let p1,p2,…,pn+1p_1, p_2, \dots, p_{n+1} denote the first n+1n+1 primes. Suppose that {A,B}\{A, B\} is a partition of the set X={p1,p2,…,pn}X = \{p_1, p_2, \dots, p_n\}, where A={q1,q2,…,qs}A = \{q_1, q_2, \dots, q_s\} and B={r1,r2,…,rt}B = \{r_1, r_2, \dots, r_t\}. Prove that if m=q1q2…qs+r1r2…rt<pn+12m = q_1q_2\dots q_s + r_1r_2\dots r_t < p_{n+1}^2, then mm is a prime.

Solution

Assume to the contrary, that mm is not a prime number. Then m=abm = ab for some integers aa and bb with 1<a<m1 < a < m and 1<b<m1 < b < m. Let pp be the smallest prime that divides aa and let qq be the smallest prime that divides bb. WLOG we may assume that p≤qp \le q. We now consider two cases according to whether p∈Xp \in X or p∉Xp \notin X.

* If p∈Xp \in X, then either p=qip = q_i for some ii with 1≤i≤s1 \le i \le s or p=rjp = r_j for some jj with 1≤j≤t1 \le j \le t, but not both ({A,B}\{A, B\} is a partition). Suppose that p=qip = q_i where 1≤i≤s1 \le i \le s. Since p∣ap \mid a, then p∣mp \mid m. Also p∣q1q2…qsp \mid q_1q_2\dots q_s. Thus p∣(m−q1q2…qs)p \mid (m - q_1q_2\dots q_s) and so p∣r1r2…rtp \mid r_1r_2\dots r_t. This implies that p=rjp = r_j for some jj with 1≤j≤t1 \le j \le t. Contradiction.

* If p∉Xp \notin X, then q≥p≥pn+1q \ge p \ge p_{n+1} and so m≥pq≥pn+12m \ge pq \ge p_{n+1}^2. Contradiction.

From the preceding we conclude that mm is prime, and we are done.

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.