Gapplet

Given three polynomials a, b, d Q[X], determine whether a = b (mod d).

Input a,  e.g., X^6-3*X-1
Input b,  e.g., X^7-3*X-4
Input d,  e.g., X^6+3*X-1