Maths Olympiad Prep

Library / /10 of 49

, 2022

Combinatorics Difficulty 5.2 AIME, harder Prove it Bulgaria

A positive integer nn is called balanced if it is not a prime and for any integer kk in the interval [1,n1][1, \sqrt{n}-1] the number of ways to choose kk persons from a group of nn people is divisible by nn. If mm and nn are balanced five digit positive integers find the smallest value of the difference mn|m-n|.

Solution

Answer. 202. As in problem 9.3 we obtain that any 5-digit balanced number is of the forms: p2p^2 or p(p+2)p(p+2) where pp and p+2p+2 are primes. Since p(p+2)=(p+1)21<(p+1)2p(p+2) = (p+1)^2 - 1 < (p+1)^2 it follows that the smallest positive difference between two 5-digit numbers equals 2p2p where pp is the smallest prime number for which p+2p+2 is also a prime and p2p^2 and p(p+2)p(p+2) are 5-digit numbers. The smallest 5-digit number is 10000=10410000 = 10^4, i.e, we want p100p \ge 100. Direct verification shows that 101 and 103 are both prime numbers. The corresponding 5-digit balanced numbers are 1012101^2 and 101103101 \cdot 103 with difference 2101=2022 \cdot 101 = 202.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.