Multiply D by your quotient and add your remainder. Collect every coefficient and compare with N. A single numerical substitution is useful for finding mistakes, but normally cannot verify an entire polynomial identity.
If the divisor is x − a, substitute x = a into N ≡ (x − a)Q + R. The product vanishes, so R = N(a). A zero remainder means x − a is a factor.
Division by x − a: R = N(a)
Why is a degree condition necessary?
You could write N = D(Q − 1) + (R + D). That equality is true, but R + D has degree at least that of D and still needs division. The degree condition singles out the completed quotient and remainder.
For the linear example, N(−2) = −16 + 12 + 10 + 7 = 13. This confirms the remainder independently; multiply out as well to check the quotient.