Every question below leans on three symbols: M, Mi and yi. Let us fix them with a picture before they appear in a trap, using the concrete system x≡2(mod3),x≡3(mod5),x≡2(mod7).
The next figure shows why each of these three numbers exists: each modulus draws a repeating "remainder colouring" of the number line, and CRT asks for the one point where all three colourings agree inside [0,105).
Now watch a single term aiMiyi do its job. Mi is already 0 in every slot but the i-th; multiplying by yi makes it 1 in its own slot; multiplying by ai makes it ai there. The three terms are like three spotlights, each lighting exactly one congruence and staying dark on the others.
CRT with coprime moduli always has at least one solution.
True. Coprimality guarantees the needed inverses exist, so the constructive formula produces a concrete x — existence is never in doubt when moduli are pairwise coprime.
If the moduli are pairwise coprime, the solution is unique over all integers.
False. It is unique only moduloM=∏mi; there are infinitely many integer solutions, all differing by multiples of M. Uniqueness means one per length-M window.
"Pairwise coprime" and "the whole product is coprime to each modulus" say the same thing.
Roughly yes for the pairwise part, but the real requirement is that each pair shares no factor. 6,10,15 have gcd of all three =1 yet are not pairwise coprime (gcd(6,10)=2), so CRT's basic form does not apply.
A system with non-coprime moduli can still have a solution.
True — sometimes. If the overlapping constraints happen to agree (e.g. ai≡aj(modgcd(mi,mj))), a solution exists; it just isn't guaranteed and the modulus of uniqueness becomes lcm, not the product.
The number of solutions in [0,M) is always exactly one when moduli are coprime.
True. That is the whole content of "unique solution modulo M": precisely one residue class works.
If gcd(m1,m2)=d>1 and the constraints agree, the solution is unique modulo m1m2.
False. It is unique modulo lcm(m1,m2)=dm1m2, which is smaller than the product. The overlap collapses the effective range.
Swapping the order of the congruences changes the answer.
False. The solution set is a property of the constraints, not their listing order. Reordering only reshuffles the terms in the sum ∑aiMiyi; the total is the same modulo M.
Every integer ai is a valid right-hand side, even a huge or negative one.
True. CRT places no limit on the ai; they are just residues. A negative ai is fine — reduce it mod mi if you like, but you needn't.
Wrong — there is no fraction here. A modular inverse is an integery with 5y≡1(mod7); that's y=3 since 5⋅3=15≡1. Ordinary division doesn't exist in modular arithmetic.
"Mi is M times mi."
Wrong — it's Mi=M/mi, the product of all moduli exceptmi (in our worked case M1=105/3=35, not 105⋅3). This makes Mi divisible by every other modulus (so contributing 0 there) while staying coprime to mi.
"I'll apply CRT to x≡2(mod4),x≡3(mod6) using the standard formula."
Wrong — gcd(4,6)=2=1, so the basic formula fails: Mi−1modmi doesn't exist. Also the constraints conflict (x even vs x odd), so there's no solution at all.
"Since each term aiMiyi satisfies the i-th congruence, the sum satisfies all of them."
Correct reasoning, actually — no error. Each other term is ≡0(modmi), so only the i-th term survives mod mi, giving x≡ai. The trap is doubting a true statement.
"Miyi≡1(modM), so the term equals ai."
Wrong — the inverse relation holds only (modmi), not (modM). Miyi is 1 mod mi but 0 mod the other moduli; it is not1 mod the whole M.
"gcd(Mi,mi)=1 needs to be checked separately each time."
Unnecessary — it's automatic. Because the mj are pairwise coprime to mi, their product Mi shares no factor with mi, so gcd(Mi,mi)=1 for free.
"If one congruence is x≡0(modmi), CRT can't handle it."
Wrong — ai=0 is a perfectly ordinary residue. The term aiMiyi just vanishes; the other congruences still pin down x. Nothing breaks.
Why does coprimality make the constraints "independent"?
Because two coprime moduli share no prime, no single prime power is constrained twice. Their remainder conditions carve the number line along disjoint axes, so no two conditions can ever contradict (see the non-overlapping colourings in figure s01).
Why must Mi be coprime to mi for the construction to work?
Only a number coprime to mi has an inverse mod mi. Without that inverse yi, we couldn't scale Mi to be ≡1(modmi), and the term wouldn't deliver ai to the i-th slot (this is the "turn the spotlight to 1" step in figure s02).
Why does the term aiMiyi contribute 0 to every other congruence?
Because Mi=M/mi is a multiple of every mj with j=i. Any multiple of mj is ≡0(modmj), so those terms silently disappear when you reduce mod mj — the dark cells in figure s02.
Why is the modulus of uniqueness the productM and not something smaller?
When moduli are pairwise coprime there is no shared structure to collapse, so the combined "period" is the full product. The combined constraint repeats only every M steps.
Why can a single congruence x≡a(modm) be seen as CRT with k=1?
Trivially: with one modulus, M=m, M1=1, y1=1, and the formula returns x≡a(modm). CRT is the multi-constraint generalisation of this base case.
Why does CRT underpin RSA speed-ups?
RSA works modulo N=pq with p,q distinct primes (hence coprime). CRT lets you compute mod p and mod q separately — much cheaper — then reassemble, exploiting that x mod N is determined by its pair of residues.
Fermat gives cheap exponent reductions mod each prime (ap−1≡1), and CRT is the machine that glues the per-prime results back into one answer mod the product. They divide and conquer together.
Why doesn't reducing each ai modulo mi first change the answer?
Because a congruence only cares about the remainder. Replacing ai by aimodmi gives the identical constraint, so the solution set is untouched — it just keeps the numbers small.
The basic theorem demands coprime moduli, but the world often hands you moduli that share factors. There is a repaired version, and these items make it precise.
Two congruences with gcd(m1,m2)=d are solvable exactly when what condition holds?
When a1≡a2(modd) — the two right-hand sides must already agree on the shared part d. Otherwise one demands (say) even and the other odd, and no x can satisfy both.
When that solvability condition holds, over what modulus is the solution unique?
Modulo lcm(m1,m2)=dm1m2, not the product. The shared factor d is counted once, not twice, so the combined period shrinks.
How can you reduce a non-coprime system to a coprime one?
Split each modulus into prime powers, keep one copy of each prime power (the strongest constraint), and check the overlaps agree. What remains is a set of prime-power moduli that are pairwise coprime, so basic CRT applies.
Why does gluing prime-power pieces recover the answer?
Because coprime prime powers multiply to the original modulus, and CRT says residues mod coprime factors determine the residue mod their product. Splitting and re-gluing is loss-free precisely when the factors are coprime.
Is x≡1(mod4),x≡3(mod6) solvable, and if so mod what?
Yes: gcd(4,6)=2 and 1≡3(mod2) (both odd), so it's solvable, unique modulo lcm(4,6)=12. The solution is x≡9(mod12).
Then gcd(5,5)=5=1, violating coprimality. Either the two ai agree mod 5 (redundant — drop one) or they clash (no solution). Basic CRT does not apply.
What if a modulus is 1?
x≡a(mod1) is always true (everything is ≡0(mod1)), so it adds no information. It's harmlessly coprime to everything and can be ignored; M is unchanged.
What is the solution to the empty system (no congruences at all)?
Every integer works — M=1 (empty product) and the unique solution mod 1 is the single class containing all integers. It's the vacuous base case.
What happens if a1=a2=⋯=ak=0?
The unique solution is x≡0(modM) — that is, x is a multiple of M. Each constraint just demands divisibility, and coprimality makes divisibility by all of them equal to divisibility by their product.
Can the CRT solution ever be x=0 inside [0,M)?
Yes, precisely when every ai≡0(modmi). Then the smallest non-negative representative is 0; all other solutions are the positive multiples of M.
What if the constraints force x larger than M?
They can't in the range sense — the representative is always taken in [0,M). Any larger valid x is that representative plus a multiple of M, so "larger than M" just means a different member of the same class.
If moduli are coprime but you mistakenly use lcm instead of the product, what happens?
Nothing goes wrong — for coprime numbers lcm(mi)equals the product M. The two formulas coincide exactly here; they diverge only when moduli share factors.
Recall Quick self-test
The single fact that decides whether basic CRT applies ::: Whether the moduli are pairwise coprime (gcd(mi,mj)=1 for every pair).
The modulus over which the CRT solution is unique ::: M=∏mi, the product of all the moduli.
The one true "division" in modular arithmetic ::: multiplication by a modular inverse, which exists exactly when the number is coprime to the modulus.
For non-coprime m1,m2 the solution (if any) is unique modulo ::: lcm(m1,m2)=m1m2/gcd(m1,m2).