Let $p(x),q(x)$ be distinct polynomials with real coefficients such that the sum of the coefficients of both polynomials equals $S$. If $ (p(x))^3-(q(x))^3=p(x^3)-q(x^3)$, then prove the following:
(a) $p(x)-q(x)=(x-1)^ar(x)$ for some integer $a ≥ 1$ and a polynomial $r(x)$ with $r(1)\ne0$.
(b) $S^2=3^{a-1}$