Problem 844: (2021 AIME I, 8)
Find the number of integers $c$ such that the equation \[ \left||20|x|-x^2|-c\right|=21 \] has $12$ distinct real solutions.
- Let $h(x)=|20|x|-x^2|$. It is even; for $x\ge0$ it rises to $100$ at $x=10$, falls to $0$ at $20$, then increases.
- So $h(x)=v$ has $6$ solutions for $0<v<100$, $4$ for $v=100$, $2$ for $v>100$, $3$ for $v=0$.
- The equation means $h(x)=c\pm21$. Twelve solutions need both $c-21$ and $c+21$ in $(0,100)$, so $22\le c\le78$, giving $57$ values. The answer is $\boxed{057}$.
Find the number of integers $c$ such that the equation \[ \left||24|x|-x^2|-c\right|=25 \] has exactly $8$ distinct real solutions.