Gapplet
Given
a
,
d
Q
[
X
], determine the unique representative of
a
mod
d
.
Input
a
, e.g., X^8
Input
d
, e.g., X^2+X+1
unique representative
(just the remainder of division of
a
by
d
)