2021 AIME II Problem 7

Attempt Problem 7 of the 2021 AIME II 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 2021 AIME II solutions, or check the answer key.

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

7.

Let a,a, b,b, c,c, and dd be real numbers that satisfy the system of equations a+b=−3,ab+bc+ca=−4, \begin{aligned} a + b &= -3, \\ ab + bc + ca &= -4, \end{aligned} abc+bcd+cda+dab=14,abcd=30. \begin{aligned} abc + bcd + cda + dab &= 14, \\ abcd &= 30. \end{aligned} There exist relatively prime positive integers mm and nn such that a2+b2+c2+d2=mn.a^2 + b^2 + c^2 + d^2 = \frac{m}{n}. Find m+n.m + n.
Answer: 145
Concepts:system of equationssymmetry (algebra)factoring
Small hint:
The second equation is ab+c(a+b)=−4,ab + c(a + b) = -4, giving ab=3c−4;ab = 3c - 4; group the third as ab(c+d)+cd(a+b)=14ab(c + d) + cd(a + b) = 14
Big hint:
Eliminating dd and cdcd leaves a quartic in cc whose real roots are −2-2 and 103;\frac{10}{3}; one of them makes aa and bb non-real
Solution:
Since a+b=−3,a + b = -3, the second equation reads ab+c(a+b)=ab−3c=−4,ab + c(a + b) = ab - 3c = -4, so ab=3c−4.ab = 3c - 4. Grouping the third equation as ab(c+d)+cd(a+b)=14ab(c + d) + cd(a + b) = 14 gives (3c−4)(c+d)−3cd=14,(3c - 4)(c + d) - 3cd = 14, which simplifies to 3c2−4c−4d=14,3c^2 - 4c - 4d = 14, so d=3c2−4c−144.d = \frac{3c^2 - 4c - 14}{4}. The fourth equation becomes (3c−4) cd=30.(3c - 4)\,cd = 30.
Substituting for dd yields c(3c−4)(3c2−4c−14)=120,c(3c - 4)(3c^2 - 4c - 14) = 120, i.e. 9c4−24c3−26c2+56c−120=(c+2)(3c−10)⋅(3c2−4c+6)=0. \begin{aligned} &9c^4 - 24c^3 - 26c^2 \\ &\quad {}+ 56c - 120 \\ &= (c + 2)(3c - 10) \\ &\quad {}\cdot (3c^2 - 4c + 6) \\ &= 0. \end{aligned} The quadratic factor has negative discriminant, so c=−2c = -2 or c=103.c = \frac{10}{3}. If c=103,c = \frac{10}{3}, then ab=6ab = 6 with a+b=−3,a + b = -3, impossible for real a,ba, b since 9−24<0.9 - 24 \lt 0. So c=−2,c = -2, giving ab=−10ab = -10 and d=12+8−144=32.d = \frac{12 + 8 - 14}{4} = \frac{3}{2}.
Then a2+b2a^2 + b^2 =(a+b)2−2ab= (a + b)^2 - 2ab =9+20=29= 9 + 20 = 29 and c2+d2=4+94=254,c^2 + d^2 = 4 + \frac{9}{4} = \frac{25}{4}, so a2+b2+c2+d2=1414a^2 + b^2 + c^2 + d^2 = \frac{141}{4} and m+n=141+4=145.m + n = 141 + 4 = 145.
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.