Maths Olympiad Prep

Library / /6 of 14

Number theory Difficulty 5.5 AIME, harder Prove it Singapore

Two distinct 2-digit prime numbers pp, qq can be written one after the other in 2 different ways to form two 4-digit numbers. For example, 1111 and 1313 yield 11131113 and 13111311. If the two 4-digit numbers formed are both divisible by the average value of pp and qq, find all possible pairs \{p,qp, q\}.

Solution

The average of pp, qq is p+q2\frac{p+q}{2}. Therefore 2(100p+q)=(p+q)k2(100p + q) = (p+q)k for some integer kk. Thus
200p+2q=(p+q)k198p=(p+q)(k2). 200p + 2q = (p+q)k \Rightarrow 198p = (p+q)(k-2).
Since pp, qq are primes, (p+q)198(p+q) \mid 198. Now 11+13=24p+q89+97=18611 + 13 = 24 \leq p+q \leq 89 + 97 = 186. Since 198=2×32×11198 = 2 \times 3^2 \times 11, the only even factor of 198198 that lies between 2424 and 186186 is 6666. Thus p+q=66p+q = 66 and there are 4 pairs: (13,53)(13, 53), (19,47)(19, 47), (23,43)(23, 43), (29,37)(29, 37).

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 and solution reproduced as published; topic and difficulty added by this site.