$$x \equiv -7 \mod 13$$ $$x \equiv 39 \mod 15$$
I need to find the smallest x for which these equations can be solved. I've been always doing this using Chinese Reminder Theorem, but it seems that it doesn't work here, I'm not sure why though. Let's see:
$N = 13*15 = 195$
$N_{1} = \frac{195}{13} = 13$
$N_{2} = \frac{195}{15} = 15$
$GCD(13, 13) = 1*13 + 0*13$
$GCD(15,15) = 1*15 + 0*15$
$$x = 1 * (-7) * 13 + 1 * 39 * 15 = 480$$
The answer however is supposed to be $x = 84$...What's wrong?