Gapplet
Given
a
1
,
m
1
,
a
2
,
m
2
,
N
, we find
x
N
, such that
x
=
a
1
mod
m
1
and
x
=
a
2
mod
m
2
.
Input
a
1
Input
m
1
Input
a
2
Input
m
2
x
=