AMC 10 Step by Step

2005 AMC 10B Problem 24

P21-25~6 minPrint

Let xx and yy be two-digit integers such that yy is obtained by reversing the digits of xx . The integers xx and yy satisfy x2−y2=m2x^2 - y^2 = m^2 for some positive integer mm . What is x+y+mx + y + m ?

Log in to save your progress.
Show solution without answering

Key insight

With digits a and b, x squared minus y squared equals 99(a + b)(a - b). So a + b must be 11 and a - b a perfect square.

Solution

Reversed digits suggest writing the numbers with their digits. Let x=10a+bx = 10a + b and y=10b+ay = 10b + a, where aa and bb are digits. Since mm is positive, x>yx > y, so a>ba > b.

1. Factor. x2−y2=(x−y)(x+y)x^2 - y^2 = (x - y)(x + y) (difference of squares). Now
- x−y=9a−9b=9(a−b)x - y = 9a - 9b = 9(a - b),
- x+y=11a+11b=11(a+b)x + y = 11a + 11b = 11(a + b).

So m2=9⋅11⋅(a−b)(a+b)m^2 = 9 \cdot 11 \cdot (a - b)(a + b).
2. What makes a perfect square? In a perfect square, every prime appears an even number of times. The 9=3⋅39 = 3 \cdot 3 is fine, but 1111 appears only once so far. So (a−b)(a+b)(a - b)(a + b) must supply another 1111.
3. Where can the 1111 come from? a−ba - b is between 11 and 88, so it cannot be a multiple of 1111. So a+ba + b must be. Since a+ba + b is at most 9+8=179 + 8 = 17, we need a+b=11a + b = 11.
4. Now m2=9⋅11⋅11⋅(a−b)=332⋅(a−b)m^2 = 9 \cdot 11 \cdot 11 \cdot (a - b) = 33^2 \cdot (a - b). For this to be a perfect square, a−ba - b must be a perfect square: 11 or 44.
5. Find the digits.
- a+b=11a + b = 11, a−b=1a - b = 1: adding gives 2a=122a = 12, so a=6a = 6, b=5b = 5.
- a+b=11a + b = 11, a−b=4a - b = 4: adding gives 2a=152a = 15, not a whole number. Rejected.
6. Answer. x=65x = 65, y=56y = 56, and m2=332⋅1m^2 = 33^2 \cdot 1, so m=33m = 33. Check: 652−562=4225−3136=1089=33265^2 - 56^2 = 4225 - 3136 = 1089 = 33^2.
x+y+m=65+56+33=154.x + y + m = 65 + 56 + 33 = 154.

The answer is (E) 154\boxed{\textbf{(E)}\ 154}.

Why this works

For problems about reversing digits, write the numbers as 10a+b10a + b and 10b+a10b + a; their sum is always a multiple of 1111 and their difference a multiple of 99. A perfect square needs each prime an even number of times, and the small size of digits leaves only a couple of options to check.

Alternative approach

From step 2, m2m^2 is a multiple of 9999, so mm must be a multiple of both 33 and 1111, that is, a multiple of 3333. Try m=33m = 33: we need x2=y2+1089x^2 = y^2 + 1089 with xx, yy reversed two-digit numbers. Checking 6565 and 5656: 4225−3136=10894225 - 3136 = 1089. It works, giving 65+56+33=15465 + 56 + 33 = 154.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Let x=10a+bx = 10a + b and y=10b+ay = 10b + a with digits a,ba, b. Then x−y=9(a−b)x - y = 9(a - b) and x+y=11(a+b)x + y = 11(a + b), so
x2−y2=(x−y)(x+y)=99 (a−b)(a+b)=32⋅11⋅(a−b)(a+b).x^2 - y^2 = (x - y)(x + y) = 99\,(a - b)(a + b) = 3^2 \cdot 11 \cdot (a - b)(a + b).
For this to be a perfect square, the prime 1111 must appear to an even power, so 1111 divides (a−b)(a+b)(a - b)(a + b). Since m>0m > 0 we need a>ba > b, so 1≤a−b≤81 \le a - b \le 8 and 11∤a−b11 \nmid a - b. Hence 11∣a+b11 \mid a + b, and as a+b≤17a + b \le 17, we get a+b=11a + b = 11.

Now x2−y2=32⋅112⋅(a−b)x^2 - y^2 = 3^2 \cdot 11^2 \cdot (a - b), so a−ba - b must be a perfect square. With a+b=11a + b = 11 odd, a−ba - b is odd, so a−b=1a - b = 1 (the only odd square at most 88). Solving a+b=11a + b = 11, a−b=1a - b = 1 gives a=6a = 6, b=5b = 5.

Then x=65x = 65, y=56y = 56, and m2=99⋅1⋅11=1089=332m^2 = 99 \cdot 1 \cdot 11 = 1089 = 33^2, so m=33m = 33.

x+y+m=65+56+33=154.x + y + m = 65 + 56 + 33 = 154.

The answer is (E) 154\boxed{\textbf{(E)}\ 154}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.