Suppose I have a polynomial $f$ of degree $d$ having integer coefficients, from $f$ I need to find a polynomial $g$ of degree $\leq d$ whose roots are subset of set of roots of $f$ and $g$ don't share any root with its derivative and double derivative. ie gcd(g,g')=1 and gcd(g,g'')=1
Let me know if there is any doubt regarding the problem.

