第 798 题:(2014 AIME II, 5)
Real numbers $r$ and $s$ are roots of $p(x)=x^3+ax+b$, and $r+4$ and $s-3$ are roots of $q(x)=x^3+ax+b+240$. Find the sum of all possible values of $|b|$.
- The third roots are $-(r+s)$ for $p$ and $-(r+s+1)$ for $q$ (the sums of roots are $0$).
- Equal $x$-coefficients: $rs-(r+s)^2=(r+4)(s-3)-(r+s+1)^2$. Expanding, $-(r^2+rs+s^2)=-(r^2+rs+s^2)-5r+2s-13$, so $s=\frac{5r+13}2$.
- The constant terms give $b=rs(r+s)$ and $b+240=(r+4)(s-3)(r+s+1)$. Substituting $s$ leaves a quadratic in $r$ with roots $r=-5$ ($s=-6$, $b=-330$) and $r=1$ ($s=9$, $b=90$).
- $330+90=420$. The answer is $\boxed{420}$.
Real numbers $r$ and $s$ are roots of $p(x)=x^3+ax+b$, and $r+4$ and $s-3$ are roots of $q(x)=x^3+ax+b+72$. Find the sum of all possible values of $|b|$.