Proof.
It is sufficient to see that
 |
(99) |
both hold iff

w

.
If the conditions hold then
 |
(100) |
Moreover from the algorithm computations we have
 |
(101) |
and
 |
(102) |
Relations (
100) and (
101) imply
that every coefficient

of

satisfies

.
Whereas Relation (
102) tells us that
every coefficient

of

is a multiple of

.
Therefore we have
 |
(103) |
Similarly we have
 |
(104) |
This implies that

divides

.
Hence the primitive part of

divides that of

which is

.
On the other hand
and
have the same degree since
holds and since
does not divide
.
has degree equal or greater to that of
by virtue of
Theorem 3.
Therefore

and

have the same degree and are in fact equal
up to a sign.
Conversely assume that

w

is

.
Recall that

and

have the same degree.
Then the polynomials

and

have the same degree too.
Hence by virtue of Theorem
3
we have
 |
(105) |
where

.
Since

divides

let

be such that

.
Hence we have
 |
(106) |
Now by construction we have
 |
(107) |
Moreover Corollary
4 states that
 |
(108) |
which implies
 |
(109) |
Relations (
105), (
106) and (
107) imply
 |
(110) |
Since

divides

and

we deduce from Relation (
109) that

divides

and

.
Hence there exist polynomials

and

such that
 |
(111) |
Corollary
4 applied to

(as factors of

)
and

(as factors of

) shows to
 |
(112) |
Finally, it follows from the way

and

are computed that we have in fact
 |
(113) |
and we proved that Relation (
99)
holds!