1987 AMC 12 Problem 23

Attempt Problem 23 of the 1987 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 1987 AMC 12 solutions, or check the answer key.

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

23.

If pp is a prime and both roots of x2+px−444p=0x^2+px-444p=0 are integers, then
1<p≤111\lt p\le11
11<p≤2111\lt p\le21
21<p≤3121\lt p\le31
31<p≤4131\lt p\le41
41<p≤5141\lt p\le51
Answer: D
Concepts:integer rootsprime divisibilityVieta’s formulas
Small hint:
For an integer root x,x, rewrite the equation as x2=p(444−x)x^2=p(444-x)
Big hint:
Since pp is prime, write x=npx=np and factor 444444
Solution:
An integer root satisfies x2=p(444−x). x^2=p(444-x). Thus xx is divisible by p,p, so write x=np.x=np. Substitution gives n(n+1)p=444=22⋅3⋅37. n(n+1)p=444=2^2\cdot3\cdot37. The consecutive product condition works only with p=37,p=37, for which n=3n=3 or −4.-4. The roots are 111111 and −148,-148, so 31<p≤41.31\lt p\le41.
Thus 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.