Maths Olympiad Prep

Track / Stage 4 / 303 of 340 #563 of 1964

Problem 563

AMC 12 late, AIME early
Number theory Difficulty 4.9 Find the answer

The sum of the sum and the product of two positive integers is 2005, and one of them is a perfect square. Then the difference between the larger number and the smaller number is

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Next problem →

Official solution

2.1001,1012.1001,101.
Let the larger of these two positive integers be xx, and the smaller one be yy, then
xy+x+y=2005 x y + x + y = 2005 \text{, }

which means (x+1)(y+1)=2006(x+1)(y+1)=2006.
Notice that, the only possibilities are
(x+1)(y+1)=2×1003=17×118 (x+1)(y+1)=2 \times 1003 = 17 \times 118 \text{, }

Therefore, xy=1001x-y=1001 or xy=101x-y=101.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.