Skip to main content

2024 AMC 12A Problem 9

Problem 9 of 25EasierAlgebraNumber Theory

Let MM be the greatest integer such that both M+1213M+1213 and M+3773M+3773 are perfect squares. What is the units digit of M?M?

Answer choices

Show solution

Solution

Write M+1213=a2M+1213=a^2 and M+3773=b2,M+3773=b^2, so b2a2=2560,b^2-a^2=2560, i.e. (ba)(b+a)=2560.(b-a)(b+a)=2560. Both factors have the same parity, hence both even. To maximize aa (and thus MM), minimize ba:b-a: take ba=2, b+a=1280,b-a=2,\ b+a=1280, so a=639.a=639. Then M=63921213M=639^2-1213 =4083211213=408321-1213 =407108,=407108, whose units digit is 8.8. Thus, the correct answer is E.

More practice

Concepts: difference of squares · perfect square · optimization

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.