1965 AMC 12 Problem 40

Attempt Problem 40 of the 1965 AMC 12 below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 1965 AMC 12 solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

40.

Let nn be the number of integer values of xx such that P=x4+6x3+11x2+3x+31P=x^4+6x^3+11x^2+3x+31 is the square of an integer. Then nn is:
44
33
22
11
00
Answer: D
Concepts:perfect squarepolynomialbounding to limit casessystematic listing
Small hint:
Rewrite P=(x2+3x+1)2−3(x−10)P=(x^2+3x+1)^2-3(x-10)
Big hint:
Distinct integer squares U2U^2 and V2V^2 differ by at least 2max⁡(∣U∣,∣V∣)−12\max(|U|,|V|)-1
Solution:
Let N=x2+3x+1.N=x^2+3x+1. Then P=N2−3(x−10).P=N^2-3(x-10). At x=10, P=N2=1312,x=10,\ P=N^2=131^2, so one value works.
If x>10x\gt10 and P=y2,P=y^2, then N2−y2=3(x−10).N^2-y^2=3(x-10). Distinct integer squares differing from N2N^2 differ by at least 2∣N∣−1,2|N|-1, which is already greater than 3(x−10),3(x-10), a contradiction. If x<10,x\lt10, the analogous bound 3(10−x)=y2−N2≥2∣y∣−1>2∣N∣−1 \begin{gathered} 3(10-x)=y^2-N^2\\ \geq2|y|-1\gt2|N|-1 \end{gathered} can hold only for −6≤x≤2.-6\leq x\leq2. Direct substitution for these nine integers gives no square. Hence x=10x=10 is the unique solution and n=1.n=1.
Therefore, the correct answer is D.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.