Summery of Problem:
I've read Proof of Cyclic Redundancy Check validity
I tried to understand with decimal.
And I encounter a problem: Why $$M(x)\cdot x^n = Q(x)G(x) + R(x)$$ equivalently $$R(x) =M(x)\cdot x^n + Q(x)G(x) $$
My thinking:
As far as I know, for example, assume that: $$M(x)\cdot x^n = 87*10^2 = 8700$$ and $$G(x) = 111$$ The $Q(x)$ should be $78$, $R(x)$ should be $42$.
So $$M(x)\cdot x^n = Q(x)G(x) + R(x) => 8700 = (111)(78) + 42$$
this is reasonable.
But for the equation: $$R(x) =M(x)\cdot x^n + Q(x)G(x) $$ Substitute above value: $$ 42 = 8700 + (111)(78)$$ Obviously, this is not correct.
What happens to my understanding?