Maths Olympiad Prep

Library / /296 of 520

Number theory Difficulty 5.3 AIME, harder Find the answer

Example 2. Given an integer nn, if nn plus 38 is a perfect square, prove that nn plus 38 is a perfect square, find nn.

The text seems to have some typographical errors or unclear phrasing. Here is a corrected version for clarity:

Example 2. Given an integer nn, if nn plus 38 is a perfect square, prove that nn plus 38 is a perfect square, and find nn.

A number or a short expression. Spacing and $ signs are ignored.

Solution

Let n51=x2,(x,yZ)n-51=x^{2},(x, y \in Z)
n+38=y2. n+38=y^{2} .

Subtracting the equations yields
(yx)(y+x)=89=189 ? =(1)(89). \begin{array}{l} (y-x)(y+x)=89=1 \cdot 89 \text { ? } \\ =(-1)(-89) . \end{array}

Thus, {y+x=1,89,1,89,yx=89,1,89,1.\left\{\begin{array}{l}y+x=1,89,-1,-89, \\ y-x=89,1,-89,-1 .\end{array}\right.
Therefore, {x=44,41,41,41,y=45,45,45,45,\left\{\begin{array}{l}x=-44,41,41, \quad 41, \\ y=45,45,-45,-45,\end{array}\right. so n=1987n=1987.

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.