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.
I don't understand your procedure, but it seems to be something like this method: write $$x=720a+560b+1008c+315d\ ,$$ substitute into the four congruences and simplify. For example, the first one gives $$6a\equiv3\pmod7\ ,$$ which is easily solved by trial and error to get $a=-3$, among other possibilities. Similarly you get $b=4$, $c=2$, $d=3$ and hence $$x\equiv -3\times720+4\times560+2\times1008+3\times315\equiv3041\pmod{5040}\ ,$$ assuming that my mental arithmetic is correct ;-)