For the system x≡a1(mod4),x≡a2(mod9),x≡a3(mod25), what single modulus M describes the "uniqueness range" of the solution, and how many solutions live in {0,1,…,M−1}?
Recall Solution
The moduli 4,9,25 are pairwise coprime (gcd of any pair is 1). CRT says the solution is unique modulo their product:
M=4⋅9⋅25=900.
Exactly one solution lies in {0,…,899}; all others differ from it by multiples of 900.
Use the substitution method (WHAT: turn the first congruence into a formula for x; WHY: then we only have one unknown left).
First congruence: x=2+3k for some integer k.
Put into the second: 2+3k≡4(mod7)⇒3k≡2(mod7).
Now we need 3−1mod7. We want 3y≡1(mod7): try y=5 since 3⋅5=15=2⋅7+1≡1. So 3−1≡5.
Multiply both sides: k≡5⋅2=10≡3(mod7).
Back-substitute: x=2+3⋅3=11.
x≡11(mod21)
Check: 11=3⋅3+2≡2(mod3) ✓, 11=7+4≡4(mod7) ✓.
The system x≡3(mod4),x≡5(mod6) has non-coprime moduli (gcd(4,6)=2). Does a solution exist? If yes, find all of them and their true period.
Recall Solution
WHAT we check first (WHY: for non-coprime moduli the generalized rule is solvable iff the two required-values agree modulo the shared gcd):
a1≡a2(modgcd(4,6))?3≡5(mod2)?1≡1 ✓ — consistent.
So solutions exist. Solve by substitution.
x=3+4k. Then 3+4k≡5(mod6)⇒4k≡2(mod6).
Divide the whole congruence by gcd(4,6,2)… carefully: 4k≡2(mod6) ⇔ 2k≡1(mod3) (divided by 2, and modulus 6/2=3). Then 2−1mod3=2, so k≡2(mod3), i.e. k=2+3t.
x=3+4(2+3t)=11+12t.
The true period is lcm(4,6)=12, not4⋅6=24.
x≡11(mod12)
Check: 11≡3(mod4) ✓, 11≡5(mod6) ✓.
Explain, using Mi, why the CRT construction formula automatically makes every cross-term vanish. Then verify concretely that in L2.2 the term a2M2y2=135 is ≡0(mod3) and (mod5) but ≡3(mod4).
Recall Solution
WHY the design works: Mi=M/mi is a product that includes every modulus except mi. So mj (for j=i) is one of its factors, giving Mi≡0(modmj). Multiplying by yi and ai keeps that zero. Meanwhile, by construction Miyi≡1(modmi), so the single surviving term equals ai⋅1=ai in the mi world.
A basket of eggs: counted by 3s, 2 remain; by 5s, 3 remain; by 7s, 2 remain. What is the smallest number of eggs greater than 0?
Recall Solution
Translate the words into congruences (WHAT: "by 3s, 2 remain" = "remainder 2 mod 3"):
x≡2(mod3),x≡3(mod5),x≡2(mod7).
Moduli 3,5,7 are pairwise coprime, M=105.
M1=35,M2=21,M3=15.
Inverses:
Combine two known congruences on the same x to reduce a hard modulus. You are told
x≡1(mod9),x≡4(mod5),x≡7(mod11).
Solve, then use the result to state xmod495 and confirm 495=9⋅5⋅11 is genuinely the period.
Recall Solution
Coprimality: 9=32, 5, 11 share no prime → pairwise coprime, so period =9⋅5⋅11=495.
M=495, M1=55,M2=99,M3=45.
Inverses:
55mod9: 55=6⋅9+1⇒55≡1, so y1=1.
99mod5: 99=19⋅5+4⇒99≡4, need 4y2≡1(mod5)⇒y2=4 (4⋅4=16≡1).
45mod11: 45=4⋅11+1⇒45≡1, so y3=1.
x≡1⋅55⋅1+4⋅99⋅4+7⋅45⋅1=55+1584+315=1954.1954mod495: 3⋅495=1485, 1954−1485=469.
x≡469(mod495)
Check: 469=52⋅9+1≡1(mod9) ✓; 469=93⋅5+4≡4(mod5) ✓; 469=42⋅11+7≡7(mod11) ✓.
Period confirmed: the next solution is 469+495=964, and no smaller step repeats all three remainders since lcm(9,5,11)=495.
Prove uniqueness. Suppose x and x′ both solve the same coprime system x≡ai(modmi) for i=1,…,k. Show x≡x′(modM) where M=∏mi.
Recall Solution
WHAT we do: subtract the two solutions and study the difference d=x−x′.
Because x≡ai and x′≡ai(modmi), subtracting gives
d=x−x′≡0(modmi)for every i.
So each mi divides d. WHY coprimality now matters: if several numbers each divide d and are pairwise coprime, then their product divides d (a divisor built from disjoint prime factors). Hence
m1m2⋯mk=M∣d,
which is exactly x≡x′(modM). Any two solutions coincide modulo M, so the solution in {0,…,M−1} is unique. ■
(Note: without coprimality, "each mi∣d" only gives lcm(mi)∣d, not ∏mi∣d — which is precisely why the period shrinks in L3.1.)
Recall Quick self-check ladder
One-line answers to lock it in.
Which levels needed a modular inverse? ::: L2, L4, L5 — every construction-formula problem.
What replaces ∏mi as the period when moduli aren't coprime? ::: lcm(m1,…,mk).
The consistency condition for non-coprime solvability? ::: ai≡aj(modgcd(mi,mj)) for all pairs.