We had the following question on an activity for our students:
Let $f_0(x)=x+|x-100|-|x+100|$, and for $n\geq 1$, let $f_n(x)=|f_{n-1}(x)|-1$. For how many values of $x$ is $f_{100}(x)=0$?
When I got home, I tried what is probably a pretty silly attempt:
Subscript[f, 0][x_] = x + Abs[100 - x] - Abs[x + 100];
sol = Nest[Abs[#] - 1 &, Subscript[f, 0][x], 100];
Solve[sol==0,x,Reals]
But things just locked up and I had to quit the kernel.
Any suggestions on how to attack this problem? The correct answer is 301.