Maths Olympiad Prep

Library / /58 of 94

Number theory Difficulty 7.0 National Olympiad Prove it Japan

For positive 2-digit integers xx and yy, the ten's digit of xx equals the one's digit of yy and the ten's digit of yy equals the one's digit of xx. Let PP be the product of xx and yy. Suppose PP is a 4-digit number, and suppose that the 2-digit number given by the last (i.e., the bottom) 2 digits of PP is 23 greater than the 2-digit number given by the first (i.e., the top) 2 digits of PP. Determine the value of PP.

Solution

By the given assumptions of the problem, we can write
x=10a+b,y=10b+a,P=xy=100c+(c+23)=101c+23, x = 10a + b, \quad y = 10b + a, \quad P = xy = 100c + (c + 23) = 101c + 23,
where a,b,ca, b, c are integers satisfying 1a,b91 \le a, b \le 9 and cc has 2-digits. We then obtain from
101c+23=P=(10a+b)(10b+a)=101ab+10(a2+b2), 101c + 23 = P = (10a + b)(10b + a) = 101ab + 10(a^2 + b^2),
the fact that 10(a2+b2)23(mod101)10(a^2 + b^2) \equiv 23 \pmod{101} holds. Consequently, we have
a2+b2100(a2+b2)1023=23073(mod101). a^2 + b^2 \equiv -100(a^2 + b^2) \equiv -10 \cdot 23 = -230 \equiv 73 \pmod{101}.
From a2+b273(mod101)a^2 + b^2 \equiv 73 \pmod{101} and 2=12+12a2+b292+921622 = 1^2 + 1^2 \le a^2 + b^2 \le 9^2 + 9^2 \le 162, we see that a2+b2=73a^2 + b^2 = 73. There are only two pairs (a,b)(a, b) with 1a,b91 \le a, b \le 9 satisfying this equality, namely, (a,b)=(8,3)(a, b) = (8, 3) or (3,8)(3, 8). We then get P=xy=8338=3154P = xy = 83 \cdot 38 = 3154 and this gives the desired answer.

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.