Maths Olympiad Prep

Library / NMO Selection Tests for JBMO /17 of 58

NMO Selection Tests for JBMO

Number theory Difficulty 5.5 AIME, harder Prove it Romania

Let p>5p > 5 be a prime number and S={p−n2∣n∈N,n2<p}S = \{p - n^2 \mid n \in \mathbb{N}, n^2 < p\}. Prove that SS contains two elements aa and bb such that 1<a<b1 < a < b and aa divides bb.

BMO, 1996

Solution

We show that the smallest element of SS that is greater than 11 divides a larger element of SS. If pp is of the form m2+1m^2 + 1, with m∈Nm \in \mathbb{N}, we show that p−(m−1)2=2mp - (m - 1)^2 = 2m divides p2−1=m2p^2 - 1 = m^2. Indeed, as mm is even, it follows that 2m∣m22m \mid m^2.

If pp cannot be written as m2+1m^2 + 1, m∈Nm \in \mathbb{N}, pp cannot be written as m2+2mm^2 + 2m either (this is a composite number because m>1m > 1), hence m2+1<p<m2+2mm^2 + 1 < p < m^2 + 2m for some m∈Nm \in \mathbb{N} (m≥2m \ge 2). We show that p−m2p - m^2, which is an element of SS that is larger than 11, divides another element of SS. The condition that p−m2p - m^2 divides one of the numbers p−n2p - n^2 with n∈{0,1,2,…,m−1}n \in \{0, 1, 2, \dots, m-1\} is equivalent to p−m2p - m^2 dividing one of the numbers m2,m2−12,m2−22,…,m2−(m−1)2m^2, m^2 - 1^2, m^2 - 2^2, \dots, m^2 - (m-1)^2. Being smaller than 2m2m, p−m2p - m^2 divides one of the following 2m−12m-1 consecutive numbers: 1,2,…,m−11, 2, \dots, m-1, mm, m+1,…,2m−1m+1, \dots, 2m-1, hence it divides one of the differences m2−02,m2−12,…,m2−(m−1)2m^2 - 0^2, m^2 - 1^2, \dots, m^2 - (m-1)^2. Moreover, it does not divide m2m^2, because it would divide pp.

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.