The problem is given as follows:
Let $p(x) = x^{2004} - x^{1901} - 50$. What is the remainder of the division of $p(x)$ by $(x-1)^2$.
The solution is straightforward when using the derivative of $p(x)$. However, considering that I stumbled upon this problem in a high school textbook, I'm assuming that an elegant solution exists without the use of calculus?
Let $$ x^{2004}-x^{1901}-50=q(x)(x-1)^2+ax+b. $$ Translating by $-1$, we have $$\begin{align*} q(x+1)x^2+ax+(a+b)&=(x+1)^{2004}-(x+1)^{1901}-50\\&=\sum_{j=0}^{2004}\binom{2004}jx^j-\sum_{j=0}^{1901}\binom{1901}jx^j-50 \\&= \text{(higher order terms})+103x-50. \end{align*}$$ This gives $a=103$ and $b=-153$.