DR.WANG Mathematics中文

2024 AMC 12A · Question 9

Number theory · perfect square · difference of squares · optimization · parity · algebra · problem-solving

Problem outline

Take the largest integer MM for which M+1213M+1213 and M+3773M+3773 are both squares of integers. What digit ends MM?

Show answer and methods 1 methods

Answer

E. 88.

Method 1 Maximize a difference of paired factors

Write M+1213=a2M+1213=a^2 and M+3773=b2M+3773=b^2 with 0≤a<b0\le a<b. Then (b−a)(b+a)=2560(b-a)(b+a)=2560. The two factors have the same parity and their product is even, so both are even.

For a fixed product, 2a=(b+a)−(b−a)2a=(b+a)-(b-a) is largest when the smaller factor is as small as possible. The pair (2,1280)(2,1280) is valid and gives a=639a=639. Thus the units digit of MM is that of 92−3=789^2-3=78, namely 8.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)