I'll use an online LaTeX interpreter/parser o algo (use a non-dark theme to actually see the mostly transparent images I sent ITP).
We start with these 2 equations:
The first equation is our 'divisible by $x^{3}$' statement and the second equation is our 'divisible by (x+1)^{3} after adding 3' statement.
Let's rewrite $y(x)$ and $g(x)$ into something more comprehensible (WOAHJAKS) and bring it to its logical conclusion.
The degree of $f(x)$ is $5$ and is divisible by $x^{3}$, therefore $f(x)$ must NOT have a constant, linear or quadratic term, thus making the equation look something like the above.
Unfortunately, it gets quite messy after this, bear with me thoughbeit.
We substitute $f(x)$...