Polynomial manipulation

Observation: your problem seems equivalent to solving this system of polynomial equations:

  1. p(x) = 0
  2. d(x) \cdot f = n(x)

Here f is a newly introduced variable.

2 Likes