返回题库

AIME 1999 · 第 3 题

AIME 1999 — Problem 3

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Find the sum of all positive integers nn for which n219n+99n^2-19n+99 is a perfect square.

解析

Solution 1

If n219n+99=x2n^2-19n+99=x^2 for some positive integer xx, then rearranging we get n219n+99x2=0n^2-19n+99-x^2=0. Now from the quadratic formula,

n=19±4x2352n=\frac{19\pm \sqrt{4x^2-35}}{2}

Because nn is an integer, this means 4x235=q24x^2-35=q^2 for some nonnegative integer qq. Rearranging gives (2x+q)(2xq)=35(2x+q)(2x-q)=35. Thus (2x+q,2xq)=(35,1)(2x+q, 2x-q)=(35, 1) or (7,5)(7,5), giving x=3x=3 or 99. This gives n=1,9,10,n=1, 9, 10, or 1818, and the sum is 1+9+10+18=381+9+10+18=\boxed{38}.

Solution 2

Suppose there is some kk such that x219x+99=k2x^2 - 19x + 99 = k^2. Completing the square, we have that (x19/2)2+99(19/2)2=k2(x - 19/2)^2 + 99 - (19/2)^2 = k^2, that is, (x19/2)2+35/4=k2(x - 19/2)^2 + 35/4 = k^2. Multiplying both sides by 4 and rearranging, we see that (2k)2(2x19)2=37(2k)^2 - (2x - 19)^2 = 37. Thus, (2k2x+19)(2k+2x19)=35(2k - 2x + 19)(2k + 2x - 19) = 35. We then proceed as we did in the previous solution.

Solution 3

When n12n \geq 12, we have

(n10)2<n219n+99<(n8)2.(n-10)^2 < n^2 -19n + 99 < (n-8)^2. So if n12n \geq 12 and n219n+99n^2 -19n + 99 is a perfect square, then

n219n+99=(n9)2n^2 -19n + 99 = (n-9)^2 or n=18n = 18.

For 1n<121 \leq n < 12, it is easy to check that n219n+99n^2 -19n + 99 is a perfect square when n=1,9n = 1, 9 and 1010 ( using the identity n219n+99=(n10)2+n1.)n^2 -19n + 99 = (n-10)^2 + n - 1.)

We conclude that the answer is 1+9+10+18=38.1 + 9 + 10 + 18 = \boxed{38}.