Suppose I have the congruences:
$x \equiv 3 ($mod $7)$
$x \equiv 8 ($mod $9)$
$x \equiv 1 ($mod $5)$
$x \equiv 1($mod $16)$
The Chinese Remainder Theorem says I will have a solution $($mod $5040)$.
Basically what I did was create $4$ combinations.
$720 ($mod $7) = 6$.
$560 ($mod $9) = 2$.
$1008 ($mod $5) = 3$.
$315 ($mod 16$) = 11$.
I then proceeded to multiply out $3 \cdot 720 \cdot 6 + 8 \cdot 560 \cdot 2 + ...$, and then take that answer mod $5040$, but got an answer that does not satisfy the congruences. I recall doing this same exact procedure when doing the egg problem figuring out how many eggs the lady started with, and it worked out fine. What am I doing wrong? The help would be appreciated.