Skip to content
Back to exploration
Mathematical modeling / English

Chinese Remainder Theorem, 2-minute Method

Errichto Algorithms · YouTube · 8:48

Open original
READ & KEEP

The explanation, unpacked.

Saves 0

Reviewed learning material · Video analysis · English
Read the full overview

This 150-second whiteboard lesson solves the system x ≡ 3 (mod 4), x ≡ 5 (mod 6), x ≡ 2 (mod 5) by an iterative search method. It first lists numbers congruent to 3 modulo 4, then picks the first one also congruent to 5 modulo 6, namely 11. The solution family for the first two congruences is advanced by LCM(4,6)=12, giving 11, 23, 35, 47, ... , and the first term congruent to 2 modulo 5 is 47. The video then states that all solutions are 47 plus multiples of LCM(4,6,5)=60, and finally generalizes the same pattern to a four-congruence system using x0x_0 and LCM(m1m_1,m2m_2,m3m_3). This 150-second whiteboard segment teaches a practical Chinese Remainder Theorem workflow built around least common multiples. It first shows that once some congruences are solved, all compatible candidates form an arithmetic progression whose step is the LCM of the moduli already combined. The speaker then distinguishes the coprime case, where LCM(a,b)=ab, from the non-coprime case, using 5 and 12 versus 4 and 6 to show why replacing LCM by the product can skip valid solutions such as 47. Two computation methods for LCM(4,6) are demonstrated: listing multiples until reaching 12, and using the formula LCM=ab/GCD. In the final worked example, the system x≡1 (mod 4), x≡0 (mod 3), x≡1 (mod 5), x≡3 (mod 7) is reordered so the equal-remainder congruences come first. From x≡1 (mod 4) and x≡1 (mod 5), the solution progression 1, 21, 41, ... is obtained because LCM(4,5)=20. The clip ends after selecting 21 as the first term satisfying x≡0 (mod 3); the modulo-7 step is not completed within this segment. This video demonstrates a constructive method for solving a system of four linear congruences using the Chinese Remainder Theorem principles. The presenter iteratively combines conditions: first merging moduli 4 and 5 to get a step size of 20, then incorporating modulus 3 to update the step to 60. To handle the final modulus 7 without computing large numbers, a 'remainder trick' is used, generating a sequence of residues modulo 7 until the target is found. This identifies the correct term in the arithmetic progression, yielding the solution 381. Finally, the general solution period is calculated as LCM(60,7)=420. This video segment demonstrates the constructive method for solving a system of linear congruences using the Chinese Remainder Theorem. It highlights the periodic nature of remainders when iterating with a step size coprime to the modulus, proving that a solution must appear within 'm' steps or not at all. The segment concludes by analyzing the algorithmic time complexity of this iterative approach, which is linear with respect to the sum of the moduli.

Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.

Chapters

0:00Problem statement and notation0:09Satisfy the first congruence0:22Intersect with the second congruence0:39Use LCM(4,6)=12 to generate joint solutions1:04Search for the third congruence and find 471:31Full solution family with step 602:02Generalization to more congruences2:30Incremental CRT solution sequences2:57LCM when moduli are coprime3:06Why product is not always LCM3:35Computing LCM(4,6) directly3:51LCM formula using GCD4:06Reordering the larger congruence system4:26Combining mod 4 and mod 54:46Selecting the first solution divisible by 35:00Combining First Two Congruences (Mod 4 & 5)5:15Adding Third Congruence (Mod 3) and Updating Step Size5:40The Remainder Trick for Mod 76:42Calculating the Specific Solution7:05General Solution and Periodicity7:30Analyzing the Remainder Sequence8:00Bounded Search and No-Solution Cases8:16Algorithmic Complexity Analysis

Learning script

Generated from the video's visuals and explanation; not verbatim speech.

The clip opens with a concrete system of three congruences written on a black board: x ≡ 3 (mod 4), x ≡ 5 (mod 6), x ≡ 2 (mod 5). Blue arrows label 3 as the remainder and 4 as the modulus, so the viewer is told how to read each line before the solution begins.

The first move is to isolate one condition at a time. To satisfy x ≡ 3 (mod 4), the presenter writes the arithmetic progression 3, 7, 11, ... and notes that adding 4 never changes the remainder modulo 4. This is the basic building block of the method: one congruence gives an infinite family of candidates.

Next, the presenter intersects that family with the second congruence x ≡ 5 (mod 6). The candidates are tested in order: 3 fails, 7 leaves remainder 1 modulo 6, and 11 leaves remainder 5. Thus 11 is identified as the first number satisfying the first two congruences simultaneously.

The video then emphasizes that 11 is not unique. Once two congruences are satisfied, the whole joint solution set is obtained by adding a number divisible by both moduli already used. Since LCM(4,6)=12, the new progression becomes 11, 23, 35, ... with step 12. This is the central iterative rule of the method.

With the first two conditions folded into one sequence, the presenter searches that sequence for the first term meeting the last congruence x ≡ 2 (mod 5). The checks are explicit: 11 ≡ 1 (mod 5), 23 ≡ 3 (mod 5), 35 ≡ 0 (mod 5), and then 47 ≡ 2 (mod 5). Therefore 47 is declared the smallest solution of the full three-congruence system.

The final numerical step is to describe all solutions, not just the smallest one. The presenter computes LCM(4,6,5)=60, explaining that this is the same as taking the previous step 12 and the new modulus 5 and computing their LCM. Hence the complete displayed family is 47, 107, 167, 227, ... , i.e. x=47+60kx = 47 + 60k.

The last section abstracts the procedure. The board replaces the concrete numbers with a four-line system x ≡ rir_i (mod mim_i) and writes the sequence x0x_0, x0x_0+LCM(m1m_1,m2m_2,m3m_3), x0+2x_0+2·LCM(m1m_1,m2m_2,m3m_3), ... . The speaker explains that after solving the first three congruences, one scans this progression for the first term satisfying the fourth congruence, calls that term a, and indicates that the process would continue in the same way. The clip ends before the next full formula after a is completed.

The segment opens on a general CRT system with four congruences in x. The key visual point is that after solving part of the system, the remaining candidates are not arbitrary: they form an arithmetic progression. The board writes x0x_0, x0x_0+LCM(m1m_1,m2m_2,m3m_3), x0+2x_0+2·LCM(m1m_1,m2m_2,m3m_3), ... and then indicates that after incorporating the fourth modulus one again gets a new starting value a and a new step given by an LCM.

The discussion then isolates the rule for coprime moduli. The formula on screen is LCM(a,b)=a⋅ba\cdot b if a and b are coprime, and the example LCM(5,12)=60 shows the shortcut in action. This matters for CRT because the step between compatible solutions is exactly the LCM of the moduli already combined.

Immediately afterward, the speaker warns that the product rule fails when the moduli share a divisor. The pair 4 and 6 is used as the counterexample: their product is 24, but their least common multiple is only 12. The board then illustrates the consequence of using 24 as the step by writing the progression 11, 35, 59, ... and noting that 47 is skipped. This is the central misconception the segment corrects.

To compute the correct LCM for non-coprime numbers, the video first uses a concrete search method. Multiples of 4 are listed as 4, 8, 12, ... and the first one divisible by 6 is 12, so LCM(4,6)=12. This is a direct numerical realization of the definition of least common multiple.

The alternative general formula is then written: LCM = a⋅ba\cdot b / GCD. Applying it to 4 and 6 gives gcd(4,6)=2 and therefore LCM(4,6)=24/2=1224/2=12. This connects the special coprime product rule to the broader arithmetic identity relating LCM and GCD.

A larger worked example appears: x ≡ 1 (mod 4), x ≡ 0 (mod 3), x ≡ 1 (mod 5), x ≡ 3 (mod 7). The first methodological trick is reordering the congruences. Since the system is simultaneous, permutation does not change the solution set. The speaker moves x ≡ 1 (mod 5) upward so that the two congruences with remainder 1 are adjacent.

With x ≡ 1 (mod 4) and x ≡ 1 (mod 5) together, the common solution is immediate: x=1x=1 works for both. The combined solution set is then 1 plus multiples of LCM(4,5). Because 4 and 5 are coprime, that LCM is 20, so the progression becomes 1, 21, 41, ... . This is the CRT step sequence in practice.

The next task is to satisfy x ≡ 0 (mod 3). One scans the progression 1, 21, 41, ... for the first term divisible by 3. The term 1 fails, but 21 succeeds, so 21 becomes the first common solution of the first three congruences. The clip ends here, before the modulo-7 congruence is processed and before the updated LCM after including modulus 3 is written out.

We begin with a system of congruences. The screen displays x≡1(mod4)x \equiv 1 \pmod 4 and x≡1(mod5)x \equiv 1 \pmod 5. Combining these, we note that any number satisfying both must differ by a multiple of lcm(4,5)=20\text{lcm}(4,5)=20. Since 1 works, the sequence of candidates is 1,21,41,…1, 21, 41, \dots, denoted on screen as 1,21,…(+20)1, 21, \dots (+20).

Next, we incorporate the condition x≡0(mod3)x \equiv 0 \pmod 3. We check the candidates from the previous step. 1 is not divisible by 3, but 21 is. Thus, 21 becomes our new starting point. The step size updates to lcm(20,3)\text{lcm}(20,3). Since 20 and 3 are coprime, the new step is 20×3=6020 \times 3 = 60. The candidate sequence becomes 21,81,141,…21, 81, 141, \dots, shown as 21,81,…(+60)21, 81, \dots (+60).

Finally, we must satisfy x≡3(mod7)x \equiv 3 \pmod 7. Checking large numbers like 81, 141, etc., is tedious. Instead, we use a remainder trick. We look at the sequence modulo 7. The start 21 gives 21≡0(mod7)21 \equiv 0 \pmod 7. The step 60 gives 60≡4(mod7)60 \equiv 4 \pmod 7. So, each subsequent term adds 4 to the remainder modulo 7.

We generate the remainder sequence: Start at 0. Add 4 to get 4. Add 4 to get 8≡18 \equiv 1. Add 4 to get 5. Add 4 to get 9≡29 \equiv 2. Add 4 to get 6. Add 4 to get 10≡310 \equiv 3. We have reached the target remainder 3. On screen, this sequence is written as 0,4,1,5,2,6,30, 4, 1, 5, 2, 6, 3 with (+4)(+4) indicated.

Counting the steps from the start (0), it took 6 additions of 4 to reach 3. This corresponds to the 6th term in our arithmetic progression 21+60k21 + 60k. Calculating this value: 21+6×60=21+360=38121 + 6 \times 60 = 21 + 360 = 381. This is our particular solution.

To describe all solutions, we find the period of the entire system. This is lcm(60,7)\text{lcm}(60, 7). Since 60 and 7 are coprime, the period is 60×7=42060 \times 7 = 420. Thus, the general solution is x≡381(mod420)x \equiv 381 \pmod{420}. The next solution would be 381+420=801381 + 420 = 801. The presenter reminds us that the product rule for LCM only applies when numbers are coprime.

Beyond the basic solution, observe the sequence of remainders generated when testing values against the modulus 7. Starting from 21, the remainders are 0, 4, 1, 5, 2, 6, 3.

Because the step size (60) and the modulus (7) are coprime, these remainders form a complete cycle covering all residues from 0 to 6. The sequence repeats indefinitely.

This periodicity implies a strict bound on the search: you only need to check at most mm values. If the target remainder hasn't appeared by then, no solution exists for that congruence.

From a programming perspective, this defines the algorithm's efficiency. The time complexity is determined by the sum of the moduli, expressed as O(m2+m3+m4)O(m_2 + m_3 + m_4), since each stage requires at most mim_i iterations.

Knowledge cards

01

Reading the congruence system

The opening board presents three modular conditions on the same unknown x. The labels remainder and modulus identify the roles of the numbers in x ≡ 3 (mod 4), so the problem is to find an integer x whose remainders modulo 4, 6, and 5 are respectively 3, 5, and 2.

x≡3(mod4),x≡5(mod6),x≡2(mod5)x \equiv 3 \pmod{4},\quad x \equiv 5 \pmod{6},\quad x \equiv 2 \pmod{5}
02

One congruence gives an arithmetic progression

To satisfy a single congruence, start from one valid representative and keep adding the modulus. In the example, all numbers of the form 3+4k3 + 4k satisfy the first condition, which is why the board writes 3, 7, 11, ... (+4).

3, 7, 11,…(+4)3,\ 7,\ 11,\ldots \quad (+4)
03

Intersecting two congruences by scanning

Instead of solving algebraically at once, the method tests the current progression against the next congruence. Here 3 and 7 fail modulo 6, while 11 succeeds, so 11 becomes the first simultaneous solution of the first two conditions.

04

Why the step becomes LCM(4,6)=12

After two congruences are satisfied, any further increment must be divisible by both moduli to preserve both remainders. The smallest positive such increment is their least common multiple, so the joint solution family advances by 12: 11, 23, 35, ... .

LCM(4,6)=12\mathrm{LCM}(4,6)=12
05

Finding the smallest full solution

The sequence of simultaneous solutions to the first two congruences is then scanned against the third congruence. The values 11, 23, and 35 do not leave remainder 2 modulo 5, but 47 does, so 47 is the smallest solution to all three conditions.

47≡2(mod5)47 \equiv 2 \pmod{5}
06

All solutions use step LCM(4,6,5)=60

Once 47 satisfies the whole system, the complete family is obtained by adding the least common multiple of all three moduli. The video computes this as 60 and lists 47, 107, 167, 227, ... as successive solutions.

x=47+60kx = 47 + 60k
07

General iterative pattern for more congruences

The closing board abstracts the method: if x0x_0 solves the first three congruences, then all such solutions form x0+kx_0 + k·LCM(m1m_1,m2m_2,m3m_3). The next task is to find the first term in that progression satisfying the fourth congruence, denoted a in the clip.

x0, x0+LCM(m1,m2,m3), x0+2 LCM(m1,m2,m3),…x_0,\ x_0+\mathrm{LCM}(m_1,m_2,m_3),\ x_0+2\,\mathrm{LCM}(m_1,m_2,m_3),\ldots
08

CRT candidates form an LCM-spaced progression

After some congruences are solved, every other compatible solution is obtained by adding multiples of the least common multiple of the moduli already combined. The video displays this as x0x_0, x0x_0+LCM(m1m_1,m2m_2,m3m_3), x0+2x_0+2·LCM(m1m_1,m2m_2,m3m_3), ... and then repeats the same idea after adding another modulus.

x0, x0+LCM⁡(m1,m2,m3), x0+2LCM⁡(m1,m2,m3),…x_0,\ x_0+\operatorname{LCM}(m_1,m_2,m_3),\ x_0+2\operatorname{LCM}(m_1,m_2,m_3),\ldots
09

If two moduli are coprime, their LCM is their product

For coprime positive integers a and b, the least common multiple equals ab. This shortcut is used in the CRT workflow to determine the step size quickly, as in LCM(5,12)=60 and later LCM(4,5)=20.

LCM⁡(a,b)=abif gcd⁡(a,b)=1\operatorname{LCM}(a,b)=ab \quad \text{if } \gcd(a,b)=1
10

Non-coprime moduli: product is not the LCM

When a and b share a divisor greater than 1, their product is usually too large to be the least common multiple. The example 4 and 6 shows this clearly: 4⋅6=244\cdot 6=24, but LCM(4,6)=12. Using 24 as the CRT step can skip valid solutions such as 47.

4⋅6=24,LCM⁡(4,6)=124\cdot 6=24,\quad \operatorname{LCM}(4,6)=12
11

Two ways to compute LCM(4,6)

The video demonstrates both a direct search and a formula-based method. Listing multiples of 4 gives 4, 8, 12, ... and the first multiple also divisible by 6 is 12. Equivalently, using the GCD formula gives LCM(4,6)=4⋅64\cdot 6/gcd(4,6)=24/2=1224/2=12.

LCM⁡(a,b)=abgcd⁡(a,b)\operatorname{LCM}(a,b)=\frac{ab}{\gcd(a,b)}
12

Reordering congruences is allowed

A system of simultaneous congruences may be written in any order without changing its solution set. The speaker exploits this by moving x ≡ 1 (mod 5) next to x ≡ 1 (mod 4), making the equal-remainder pattern visible at a glance.

13

Equal remainders give an immediate particular solution

If two congruences have the same remainder r, then x=rx=r satisfies both. The full combined solution set is then r plus multiples of the LCM of the two moduli. In the example, x ≡ 1 (mod 4) and x ≡ 1 (mod 5) immediately yield the progression 1, 21, 41, ... because LCM(4,5)=20.

x≡r(modm), x≡r(modn)⇒x=r+kLCM⁡(m,n)x\equiv r\pmod m,\ x\equiv r\pmod n \Rightarrow x=r+k\operatorname{LCM}(m,n)
14

Scanning the progression for the next modulus

Once a partial CRT solution set is known, the next congruence is handled by testing terms of the progression. From 1, 21, 41, ... the first term divisible by 3 is 21, so 21 becomes the first common solution of the congruences modulo 4, 5, and 3. The clip stops before the modulo-7 step is completed.

15

Iterative CRT Method

A strategy to solve systems of linear congruences by combining them one by one. At each stage, maintain an arithmetic progression of candidates. When adding a new congruence x≡r(modm)x \equiv r \pmod m, update the step size to lcm(current step,m)\text{lcm}(\text{current step}, m) and find the first term in the current progression that satisfies the new condition.

16

LCM of Coprime Numbers

If two integers aa and bb share no common factors other than 1 (i.e., gcd⁡(a,b)=1\gcd(a,b)=1), their least common multiple is simply their product: lcm(a,b)=a⋅b\text{lcm}(a,b) = a \cdot b. This simplifies calculating step sizes in the CRT method.

lcm(a,b)=ab  ⟺  gcd⁡(a,b)=1\text{lcm}(a,b) = ab \iff \gcd(a,b)=1
17

Remainder Sequence Trick

To find a term in an arithmetic progression a,a+d,a+2d,…a, a+d, a+2d, \dots that satisfies x≡r(modm)x \equiv r \pmod m without computing large numbers, analyze the remainders modulo mm. Start with a mod ma \bmod m and repeatedly add d mod md \bmod m (modulo mm) until you hit rr. The number of steps tells you which term in the original progression is the solution.

rnext≡(rcurr+(d mod m)) mod mr_{next} \equiv (r_{curr} + (d \bmod m)) \bmod m
18

General Solution Periodicity

Once a particular solution x0x_0 is found for a system of congruences with moduli m1,…,mkm_1, \dots, m_k, all solutions are given by x0+n⋅Lx_0 + n \cdot L, where L=lcm(m1,…,mk)L = \text{lcm}(m_1, \dots, m_k) and nn is an integer. In the video example, L=lcm(3,4,5,7)=420L = \text{lcm}(3,4,5,7) = 420.

x≡x0(modlcm(m1,…,mk))x \equiv x_0 \pmod{\text{lcm}(m_1, \dots, m_k)}
19

CRT Remainder Cycle Property

When solving x≡a(modm)x \equiv a \pmod m by iterating x=x0+k⋅Sx = x_0 + k \cdot S where gcd⁡(S,m)=1\gcd(S, m) = 1, the sequence of remainders (x0+kS)(modm)(x_0 + kS) \pmod m cycles through all mm possible residues exactly once before repeating. This guarantees that a solution, if it exists, is found within mm steps.

20

Bounded Search in CRT

Due to the cyclic nature of remainders, checking more than mm values for a specific modulus mm is redundant. If the target remainder is not found in the first mm iterations, the system has no solution (or an error was made), allowing for early termination.

21

Complexity of Iterative CRT

The constructive method for the Chinese Remainder Theorem described has a time complexity proportional to the sum of the moduli involved in the sequential checks. For a system with moduli m1,m2,…,mkm_1, m_2, \dots, m_k, the complexity is roughly O(∑i=2kmi)O(\sum_{i=2}^k m_i).

O(∑i=2kmi)O\left(\sum_{i=2}^k m_i\right)

Detailed learning notes

Explore conditions, steps and evidence. Supplementary explanations are labeled separately from content shown in the video.

Symbols · 31

x

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The unknown is written as x in the displayed congruences and in the generalized system.

  2. Audio
    Observation

    The speaker says, "We're looking for the smallest value x".

Symbol

x

Meaning

An integer solution to a system of congruences; in the worked example it denotes the sought number satisfying all listed modular conditions.

Domain

Integers; in this clip the search is for the smallest nonnegative or positive representative shown by the sequence method.

m1m_1,m2m_2,m3m_3,m4m_4

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The notation (mod 4), (mod 6), (mod 5) appears in the example, and (mod m1m_1), (mod m2m_2), (mod m3m_3), (mod m4m_4) appears in the generalization.

  2. Audio
    Observation

    The speaker labels the number after mod as the modulus and says, "You can increase it by something divisible by all moduli so far".

Symbol

m1m_1,m2m_2,m3m_3,m4m_4

Meaning

Moduli of the congruences; in the concrete example they are 4, 6, and 5.

r1r_1,r2r_2,r3r_3,r4r_4

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The generalized system is displayed as x ≡ r1r_1 (mod m1m_1), x ≡ r2r_2 (mod m2m_2), x ≡ r3r_3 (mod m3m_3), x ≡ r4r_4 (mod m4m_4).

  2. Audio
    Observation

    In the worked example the numbers 3, 5, and 2 are treated as the remainders to be matched.

Symbol

r1r_1,r2r_2,r3r_3,r4r_4

Meaning

Remainders specified by each congruence.

LCM

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says, "Least common multiple, LCM, of that is 12" and later, "By least common multiple of 4, 6, 5".

  2. Formula
    Observation

    The screen shows (+12), then (+60), and in the general formula LCM(m1m_1,m2m_2,m3m_3).

Symbol

LCM

Meaning

Least common multiple of the moduli already incorporated; used as the step size for the current solution sequence.

x0x_0

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The generalized solution sequence begins with x0x_0.

  2. Audio
    Observation

    The speaker says, "Let's say that you found solution for first three congruences, x0x_0".

Symbol

x0x_0

Meaning

A particular solution to the first three congruences in the generalized setup.

a

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    A handwritten a appears at the bottom after the general sequence is introduced.

  2. Audio
    Observation

    The speaker says, "After we find it, let's say it's a".

Uncertainties
  1. The clip ends before the full expression for the next solution family is completed.

Symbol

a

Meaning

The first value in the sequence x0+kx_0 + k·LCM(m1m_1,m2m_2,m3m_3) that also satisfies the fourth congruence.

x

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The variable x appears in congruence statements such as x ≡ r1r_1 (mod m1m_1) and later in the concrete system x ≡ 1 (mod 4).

Symbol

x

Meaning

Unknown integer being solved for in a system of congruences.

Domain

Integers

rir_i

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The symbols r1r_1, r2r_2, r3r_3, r4r_4 appear as remainders in the general CRT system.

Symbol

rir_i

Meaning

Remainder associated with modulus mim_i in the general congruence x ≡ rir_i (mod mim_i).

Domain

Integers

mim_i

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The symbols m1m_1, m2m_2, m3m_3, m4m_4 appear as moduli in the general CRT system.

Symbol

mim_i

Meaning

Modulus in the congruence x ≡ rir_i (mod mim_i).

Domain

Positive integers

LCM

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    LCM is used in the solution sequence and in the formula LCM(a,b)=a∗ba*b when a and b are coprime.

  2. Audio
    Observation

    The speaker says 'least common multiple' and uses LCM to describe the step size between solutions.

Symbol

LCM

Meaning

Least common multiple of given integers; used as the period or step size for compatible solutions.

Domain

Positive integers

a, b

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The formula LCM(a,b)=a∗ba*b if a and b are coprime is shown, and later LCM = a⋅ba\cdot b / GCD is written.

Symbol

a, b

Meaning

Two positive integers whose least common multiple is being computed.

Domain

Positive integers

GCD

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The denominator GCD appears in the formula LCM = a⋅ba\cdot b / GCD.

  2. Audio
    Observation

    The speaker says 'greatest common divisor of a and b'.

Symbol

GCD

Meaning

Greatest common divisor of two integers.

Domain

Positive integers

Knowledge points · 16

Congruence notation in the example

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board shows x ≡ 3 (mod 4), x ≡ 5 (mod 6), x ≡ 2 (mod 5).

  2. Audio
    Observation

    The speaker introduces the task as solving a system of congruences and names the three conditions.

  3. Diagram
    Observation

    Arrows label 3 as remainder and 4 as modulus.

Definition
Explanation

Each line states that x leaves a specified remainder upon division by a specified modulus. In this clip the notation is used concretely rather than defined abstractly.

Formula
x≡3(mod4),x≡5(mod6),x≡2(mod5)x \equiv 3 \pmod{4},\quad x \equiv 5 \pmod{6},\quad x \equiv 2 \pmod{5}
Conditions
  1. The example treats x as an integer.

  2. The labels remainder and modulus identify the roles of the numbers in the notation.

Generating all solutions to one congruence

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says, "To satisfy the first requirement, we can take 3 or 7, 11, 15, and so on. You can keep increasing by 4, and that obviously doesn't change remainder modulo 4."

  2. Formula
    Observation

    The screen writes 3, 7, 11, ... (+4).

Method
Explanation

Once one solution to x ≡ r (mod m) is known, adding the modulus m repeatedly produces further solutions because the remainder modulo m does not change.

Formula
x=r+km,k∈Z≥0x = r + km,\quad k \in \mathbb{Z}_{\ge 0}
Conditions
  1. Applied to a single congruence.

  2. The sequence shown starts from the smallest displayed representative and increases by the modulus.

Prerequisites
  1. Congruence notation in the example

Updating the solution family with the LCM of combined moduli

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says, "Not the only one though. You can increase it by something divisible by all moduli so far, 4 and 6. Least common multiple, LCM, of that is 12, and if you add to something 12, you don't change remainders modulo 6 and 4, because 12 is divisible by 6 and 4."

  2. Formula
    Observation

    The board changes from 11 to 11, 23, 35, ... (+12).

Method
Explanation

After two congruences are satisfied simultaneously, all simultaneous solutions form an arithmetic progression whose common difference is the least common multiple of the two moduli already used.

Formula
x=x12+k LCM(4,6)=x12+12kx = x_{12} + k\,\mathrm{LCM}(4,6)=x_{12}+12k
Conditions
  1. x12x_{12} is one solution satisfying both earlier congruences.

  2. The new step size must be divisible by every modulus already incorporated.

Prerequisites
  1. Generating all solutions to one congruence

Smallest solution of the worked three-congruence system

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker checks 11 mod 5, 23 mod 5, 35 mod 5, then says, "after 35 plus 12 that's 47, and 47 modulo 5 is 2 indeed. So it is the smallest solution for our system of three congruences."

  2. Formula
    Observation

    The sequence 11, 23, 35, 47, ... (+12) is shown, and 47 is highlighted as the answer.

Method
Explanation

The method searches the current arithmetic progression for the first term that satisfies the remaining congruence. Here the first such term is 47.

Formula
47≡3(mod4),47≡5(mod6),47≡2(mod5)47 \equiv 3 \pmod{4},\quad 47 \equiv 5 \pmod{6},\quad 47 \equiv 2 \pmod{5}
Conditions
  1. The search is over the sequence of simultaneous solutions to the first two congruences.

  2. The result is the smallest value found by this forward scan.

Prerequisites
  1. Updating the solution family with the LCM of combined moduli

General solution family for the worked system

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says, "Again, not the only one. We can increase it by what? By least common multiple of 4, 6, 5, all moduli values. It's easiest to compute it by taking the previous LCM and the new modulus value and just grabbing those two, computing their LCM. In this case, that's 60, smallest value divisible by 12 and 5. The smallest solution is 47, but then there's 107, 167, 227, and so on."

  2. Formula
    Observation

    The board shows 47(+60)47 (+60) and then solutions: 47, 107, 167, ...

Formula
Explanation

Once the smallest solution is found, all solutions are obtained by adding multiples of the least common multiple of all moduli in the system.

Formula
x=47+60k,k∈Z≥0x = 47 + 60k,\quad k \in \mathbb{Z}_{\ge 0}
Conditions
  1. The displayed list uses nonnegative k.

  2. 60 = LCM(4,6,5) = LCM(12,5).

Prerequisites
  1. Smallest solution of the worked three-congruence system
  2. Updating the solution family with the LCM of combined moduli

Iterative pattern for more than three congruences

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board displays a four-congruence system and the sequence x0x_0, x0x_0+LCM(m1m_1,m2m_2,m3m_3), x0+2x_0+2*LCM(m1m_1,m2m_2,m3m_3), x0+3x_0+3*LCM(m1m_1,m2m_2,m3m_3), ...

  2. Audio
    Observation

    The speaker says, "This method still works if there are more congruences. Let's say that you found solution for first three congruences, x0x_0, and you computed least common multiple of the first three moduli... then here is the sequence of solutions for first three congruences, and in this sequence we need to find the first value satisfying the fourth congruence. After we find it, let's say it's a, you can keep increasing it..."

Uncertainties
  1. The clip ends before the speaker completes the final sentence about how to continue after finding a.

Method
Explanation

The same search-and-update pattern generalizes: solve the first few congruences, list their solutions as an arithmetic progression with step equal to the LCM of the solved moduli, then scan that progression for the first term satisfying the next congruence.

Formula
x0, x0+LCM(m1,m2,m3), x0+2 LCM(m1,m2,m3), x0+3 LCM(m1,m2,m3),…x_0,\ x_0+\mathrm{LCM}(m_1,m_2,m_3),\ x_0+2\,\mathrm{LCM}(m_1,m_2,m_3),\ x_0+3\,\mathrm{LCM}(m_1,m_2,m_3),\ldots
Conditions
  1. x0x_0 is assumed to satisfy the first three congruences.

  2. The next target is the first term in this sequence that also satisfies x ≡ r4r_4 (mod m4m_4).

Prerequisites
  1. Updating the solution family with the LCM of combined moduli

Incremental CRT solution sequence

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board shows x0x_0, x0x_0+LCM(m1m_1,m2m_2,m3m_3), x0+2x_0+2*LCM(m1m_1,m2m_2,m3m_3), x0+3x_0+3*LCM(m1m_1,m2m_2,m3m_3), ... and then a, (+ LCM).

  2. Audio
    Observation

    The speaker explains that instead of recomputing from scratch, one can use the already known LCM and then compute the LCM with modulus 4.

Method
Explanation

When solving a system of congruences incrementally, once a particular solution is found for some subset of congruences, all other compatible solutions form an arithmetic progression whose step is the least common multiple of the moduli already combined. Adding another congruence means searching within this progression and then updating the step to the LCM including the new modulus.

Formula
x0, x0+LCM⁡(m1,m2,m3), x0+2LCM⁡(m1,m2,m3), x0+3LCM⁡(m1,m2,m3),…x_0,\ x_0+\operatorname{LCM}(m_1,m_2,m_3),\ x_0+2\operatorname{LCM}(m_1,m_2,m_3),\ x_0+3\operatorname{LCM}(m_1,m_2,m_3),\ldots
Conditions
  1. A particular solution x0x_0 has already been found for the earlier congruences.

  2. The listed moduli are the ones already combined.

  3. The next candidate solutions are obtained by adding multiples of their LCM.

Prerequisites
  1. LCM of coprime integers
  2. General LCM formula using GCD

LCM of coprime integers

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board states LCM(a, b) = a∗ba*b if a and b are coprime.

  2. Audio
    Observation

    The speaker says that if moduli are coprime, their LCM is simply the product.

Formula
Explanation

If two integers have no common divisor greater than 1, then their least common multiple equals their ordinary product. This fact is used repeatedly in the CRT method to turn a congruence combination into a simple step size.

Formula
LCM⁡(a,b)=abif a and b are coprime\operatorname{LCM}(a,b)=ab \quad \text{if } a \text{ and } b \text{ are coprime}
Conditions
  1. a and b are positive integers.

  2. a and b are coprime, i.e. gcd(a,b)=1.

General LCM formula using GCD

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board writes LCM = a⋅ba\cdot b / GCD.

  2. Audio
    Observation

    The speaker says to alternatively use the formula LCM is product divided by the greatest common divisor of a and b.

Formula
Explanation

For arbitrary positive integers, the least common multiple can be computed from the product divided by the greatest common divisor. This is the fallback when the coprime shortcut does not apply.

Formula
LCM⁡(a,b)=abgcd⁡(a,b)\operatorname{LCM}(a,b)=\frac{ab}{\gcd(a,b)}
Conditions
  1. a and b are positive integers.

  2. No coprimality assumption is needed.

Prerequisites
  1. LCM of coprime integers

Reordering congruences for convenience

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says he can reorder congruences to make computations easier.

  2. Diagram
    Observation

    The displayed system changes order so that x ≡ 1 (mod 5) is moved next to x ≡ 1 (mod 4).

Method
Explanation

In a system of simultaneous congruences, the equations may be rearranged without changing the solution set. The video uses this to place congruences with equal remainders adjacent to each other, making the first combined solution obvious.

Conditions
  1. The system is a set of simultaneous congruences in the same unknown x.

  2. Reordering does not change the solution set.

Equal-remainder shortcut in CRT

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says that when he sees equal remainders, it is good to put them at the top because he immediately sees the solution for them.

  2. Formula
    Observation

    From x ≡ 1 (mod 4) and x ≡ 1 (mod 5), the board writes 1(+20)1 (+20).

Method
Explanation

If two congruences have the same remainder, that remainder itself is a solution to both. The full solution set for those two congruences is then that remainder plus multiples of the LCM of their moduli.

Formula
x≡r(modm), x≡r(modn)⇒x=r+kLCM⁡(m,n)x\equiv r\pmod m,\ x\equiv r\pmod n \Rightarrow x=r+k\operatorname{LCM}(m,n)
Conditions
  1. The two congruences share the same remainder r.

  2. The moduli m and n are positive integers.

Prerequisites
  1. LCM of coprime integers
  2. Incremental CRT solution sequence

Constructive CRT Solution Method via Iterative LCM Combination

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    Speaker describes a step-by-step process of combining congruences using LCMs and remainder sequences.

  2. Diagram
    Observation

    Visual layout shows progressive filtering of solution sets: first two congruences yield (+20), then adding third yields (+60), then fourth yields (+420).

Method
Explanation

To solve a system of linear congruences with pairwise coprime moduli, one can iteratively combine conditions. Start by finding the sequence of numbers satisfying the first few congruences, determined by the LCM of their moduli. Then, to add a new congruence, examine the remainders of the current sequence modulo the new modulus. Find the position in this remainder cycle that matches the target residue. The solution is the corresponding term in the sequence. The new step size becomes the LCM of the old step size and the new modulus.

Formula
Conditions
  1. Moduli are pairwise coprime (or at least the combined LCM logic applies).

  2. The system has a solution (guaranteed if moduli are pairwise coprime).

Prerequisites
  1. LCM of Coprime Integers
  2. Remainder Sequence Trick for Modular Search
Claims and conditions · 13

Adding the modulus preserves the remainder

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says, "You can keep increasing by 4, and that obviously doesn't change remainder modulo 4."

  2. Formula
    Observation

    The sequence 3, 7, 11, ... (+4) is written under x ≡ 3 (mod 4).

Proposition
Statement

If a number satisfies a congruence modulo m, then adding m to it gives another number with the same remainder modulo m.

Hypotheses
  1. The starting number satisfies the given congruence.

  2. The added quantity is exactly the modulus m.

Quantifiers

For the worked example, repeatedly adding 4 to any listed solution keeps the remainder modulo 4 equal to 3.

Adding the LCM of the current moduli preserves all current remainders

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says, "You can increase it by something divisible by all moduli so far, 4 and 6. Least common multiple, LCM, of that is 12, and if you add to something 12, you don't change remainders modulo 6 and 4, because 12 is divisible by 6 and 4."

  2. Formula
    Observation

    The board updates the solution family to 11, 23, 35, ... (+12).

Proposition
Statement

If a number satisfies several congruences, then adding the least common multiple of their moduli produces another number satisfying the same congruences.

Hypotheses
  1. The starting number satisfies all congruences whose moduli are included in the LCM.

  2. The added quantity is divisible by each of those moduli.

Quantifiers

In the example, adding 12 = LCM(4,6) to 11 preserves both the modulo 4 and modulo 6 remainders.

The iterative method extends beyond three congruences

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says, "This method still works if there are more congruences."

  2. Formula
    Observation

    A four-congruence system is displayed together with the sequence based on LCM(m1m_1,m2m_2,m3m_3).

Uncertainties
  1. The clip does not prove existence or uniqueness conditions for the generalized method; it only states that the same procedure continues.

Proposition
Statement

The same sequential search method used for three congruences can be applied when there are more congruences by treating the solutions of the first group as a new arithmetic progression and scanning it for the next condition.

Hypotheses
  1. A solution x0x_0 to the first group of congruences has already been found.

  2. The step size is the LCM of the moduli in that first group.

Quantifiers

Stated for a system with a fourth congruence after the first three.

Product rule for LCM requires coprimality

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board explicitly conditions LCM(a,b)=a∗ba*b on 'if a and b are coprime'.

  2. Audio
    Observation

    The speaker contrasts 5 and 12 with 4 and 6, saying the product rule does not work if there is some common divisor.

Proposition
Statement

For positive integers a and b, LCM(a,b)=ab holds when a and b are coprime; if they have a common divisor greater than 1, the product is generally too large.

Hypotheses
  1. a and b are positive integers.

Quantifiers

For all positive integers a and b, if gcd(a,b)=1 then LCM(a,b)=ab.

4 and 6 show the product rule fails without coprimality

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board writes 4,6 -> 12 while the audio mentions their product is 24.

  2. Audio
    Observation

    The speaker says for 4 and 6 their product is 24 and yet there is a smaller multiple, 12.

Proposition
Statement

The integers 4 and 6 are not coprime, and although 4⋅6=244\cdot 6=24, their least common multiple is 12.

Hypotheses
  1. Consider the specific integers 4 and 6.

Quantifiers

Existential counterexample to using the product as LCM without coprimality.

Using the product instead of the LCM can omit valid CRT candidates

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says if you use product instead of LCM you would miss some values and maybe also the solution.

  2. Formula
    Observation

    The board shows the incorrect sequence 11, 35, 59, ... and the audio says 47 is missed.

Uncertainties
  1. The exact earlier congruences producing 11 and 47 are not fully restated inside this clip, but the numbers 11, 35, 59, ... and 47 are clearly discussed.

Proposition
Statement

If one advances through candidate solutions by the product of non-coprime moduli rather than by their LCM, the resulting arithmetic progression can skip valid solutions; in the example, starting from 11 and stepping by 24 gives 11, 35, 59, ... and misses 47.

Hypotheses
  1. A previous solution is 11.

  2. The step used incorrectly is 24 instead of the correct LCM 12.

Quantifiers

There exists a case where using the product step omits a valid solution.

Listing multiples gives the LCM for two integers

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says the easiest way to compute LCM for two not coprime values is to write down multiples of one value and find the first divisible by the other.

  2. Formula
    Observation

    The board lists 4, 8, 12, ... and marks 12 as the first multiple divisible by 6.

Proposition
Statement

To compute LCM(a,b), list multiples of one integer and choose the first one divisible by the other integer. For 4 and 6, the multiples 4, 8, 12, ... show that 12 is the least common multiple.

Hypotheses
  1. a and b are positive integers.

Quantifiers

For the example pair 4 and 6, the procedure yields 12.

Reordering a congruence system preserves the solution set

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says he can reorder congruences to make all the computations easier.

  2. Diagram
    Observation

    The system is visually reordered without any claim that the solution set changes.

Proposition
Statement

The order in which simultaneous congruences are written does not affect their common solutions.

Hypotheses
  1. The congruences are all required to hold simultaneously for the same unknown x.

Quantifiers

For any finite system of simultaneous congruences, permutation of the equations leaves the solution set unchanged.

Equal remainders give an immediate particular solution

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says when he sees equal remainders he immediately sees the solution for them.

  2. Formula
    Observation

    From x ≡ 1 (mod 4) and x ≡ 1 (mod 5), the board writes 1(+20)1 (+20).

Proposition
Statement

If x ≡ r (mod m) and x ≡ r (mod n), then x=rx=r satisfies both congruences, and the combined solution set is r plus multiples of LCM(m,n).

Hypotheses
  1. The two congruences have the same remainder r.

Quantifiers

For all integers r and positive integers m,n, common solutions of x≡r (mod m) and x≡r (mod n) are exactly r+kr + k·LCM(m,n).

Existence of Solution for Pairwise Coprime Moduli

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The entire video demonstrates finding a solution, implying existence for this specific system.

  2. Diagram
    Observation

    A valid solution 381 is found and verified visually against the constraints.

Uncertainties
  1. The general theorem statement (CRT) is not explicitly quoted, but the method relies on its truth for the given coprime moduli 3, 4, 5, 7.

Theorem
Statement

For the system of congruences x≡1(mod4)x \equiv 1 \pmod 4, x≡1(mod5)x \equiv 1 \pmod 5, x≡0(mod3)x \equiv 0 \pmod 3, x≡3(mod7)x \equiv 3 \pmod 7, a solution exists because the moduli 3, 4, 5, 7 are pairwise coprime.

Hypotheses
  1. Moduli 3, 4, 5, 7 are pairwise coprime.

Quantifiers

There exists an integer x satisfying all four congruences simultaneously.

Periodicity of Solutions in CRT

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    Speaker states 'if you want to find all the solutions, the new LCM is...' and calculates 420.

  2. Diagram
    Observation

    The notation '(+420)' is appended to the solution 381.

Proposition
Statement

If x0x_0 is a solution to the system, then x0+k⋅lcm(3,4,5,7)x_0 + k \cdot \text{lcm}(3,4,5,7) is also a solution for any integer kk. In this case, the period is 420.

Hypotheses
  1. x0x_0 is a particular solution.

  2. Moduli are 3, 4, 5, 7.

Quantifiers

For all integers k.

Bounded Search for CRT Solutions

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    "Actually if you try to go for more than seven steps and you didn't find it already the solution, then either you made a mistake or there is no solution to this system of congruences."

Proposition
Statement

If a solution to x≡r(modm)x \equiv r \pmod m within an arithmetic progression does not appear in the first mm terms, then no solution exists for that specific congruence within the progression (assuming coprimality).

Hypotheses
  1. The step size of the progression is coprime to the modulus mm.

  2. The search checks consecutive terms of the progression.

Quantifiers

For all moduli m and step sizes coprime to m.

Derivations and proofs · 12

Step-by-step solution of the displayed three-congruence system

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker narrates the full solve: start from 3, 7, 11, ...; test against mod 6; get 11; extend by 12; test against mod 5; get 47; then extend by 60.

  2. Formula
    Observation

    The board successively shows 3, 7, 11, ... (+4); 11, 23, 35, ... (+12); 47(+60)47 (+60); solutions: 47, 107, 167, ...

Proof
Steps
  1. Expression
    3, 7, 11, 15,…3,\ 7,\ 11,\ 15,\ldots
    Explanation

    Start with numbers satisfying the first congruence x ≡ 3 (mod 4).

    Justification

    Adding the modulus 4 preserves the remainder modulo 4.

    Shown in the video
  2. Expression
    3≢5(mod6),7≡1(mod6),11≡5(mod6)3 \not\equiv 5 \pmod{6},\quad 7 \equiv 1 \pmod{6},\quad 11 \equiv 5 \pmod{6}
    Explanation

    Test the sequence against the second congruence x ≡ 5 (mod 6).

    Justification

    Direct substitution into the second condition.

    Shown in the video
  3. Expression
    11, 23, 35, 47,…11,\ 23,\ 35,\ 47,\ldots
    Explanation

    Once 11 satisfies the first two congruences, generate all simultaneous solutions by adding 12.

    Justification

    12 = LCM(4,6), and adding a common multiple of the current moduli preserves both remainders.

    Shown in the video
  4. Expression
    11≡1(mod5),23≡3(mod5),35≡0(mod5),47≡2(mod5)11 \equiv 1 \pmod{5},\quad 23 \equiv 3 \pmod{5},\quad 35 \equiv 0 \pmod{5},\quad 47 \equiv 2 \pmod{5}
    Explanation

    Search the new sequence for the first term satisfying x ≡ 2 (mod 5).

    Justification

    Direct checking of each candidate against the third congruence.

    Shown in the video
  5. Expression
    x=47+60kx = 47 + 60k
    Explanation

    After finding 47 as the smallest solution to all three congruences, describe the full family of solutions.

    Justification

    60 = LCM(4,6,5) = LCM(12,5), so adding 60 preserves all three remainders.

    Shown in the video
Conclusion

The smallest solution shown for the system is 47, and the displayed solution family is 47, 107, 167, 227, ... .

Generalized continuation to a fourth congruence

Approximate timing
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker explains the next stage for a four-congruence system but the sentence is cut off before completion.

  2. Formula
    Observation

    The board shows x0x_0, x0x_0+LCM(m1m_1,m2m_2,m3m_3), x0+2x_0+2*LCM(m1m_1,m2m_2,m3m_3), x0+3x_0+3*LCM(m1m_1,m2m_2,m3m_3), ... and then a handwritten a.

Uncertainties
  1. The final update rule after finding a is not fully spoken or written within this clip.

Intuitive argument
Steps
  1. Expression
    x≡r1(modm1), x≡r2(modm2), x≡r3(modm3), x≡r4(modm4)x \equiv r_1 \pmod{m_1},\ x \equiv r_2 \pmod{m_2},\ x \equiv r_3 \pmod{m_3},\ x \equiv r_4 \pmod{m_4}
    Explanation

    Consider a larger system with four congruences.

    Justification

    The speaker explicitly says the method still works if there are more congruences.

    Shown in the video
  2. Expression
    x0, x0+LCM(m1,m2,m3), x0+2 LCM(m1,m2,m3),…x_0,\ x_0+\mathrm{LCM}(m_1,m_2,m_3),\ x_0+2\,\mathrm{LCM}(m_1,m_2,m_3),\ldots
    Explanation

    List all solutions to the first three congruences as an arithmetic progression.

    Justification

    By the same LCM-preservation principle used in the worked example.

    Shown in the video
  3. Expression
    aa
    Explanation

    Choose the first term in that progression that also satisfies the fourth congruence.

    Justification

    The speaker says, "in this sequence we need to find the first value satisfying the fourth congruence. After we find it, let's say it's a".

    Shown in the video
Conclusion

The clip establishes the next search stage for a fourth congruence, but stops before writing the full final solution family after a.

Computing LCM(4,6) by listing multiples

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker explains writing down multiples of one value and finding the first divisible by the other.

  2. Formula
    Observation

    The board shows 4, 8, 12, ... and identifies 12.

Numerical verification
Steps
  1. Expression
    4, 8, 12,…4,\ 8,\ 12,\ldots
    Explanation

    List the positive multiples of 4.

    Justification

    This is the procedure stated in the video for finding a common multiple.

    Shown in the video
  2. Expression
    12 is divisible by 612\text{ is divisible by }6
    Explanation

    Check which listed multiple is also a multiple of 6.

    Justification

    The first common multiple in the list is the least common multiple.

    Shown in the video
  3. Expression
    LCM⁡(4,6)=12\operatorname{LCM}(4,6)=12
    Explanation

    Conclude that the least common multiple is 12.

    Justification

    By definition of LCM as the smallest positive common multiple.

    Shown in the video
Conclusion

The least common multiple of 4 and 6 is 12.

Computing LCM(4,6) with the GCD formula

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board writes LCM = a⋅ba\cdot b / GCD.

  2. Audio
    Observation

    The speaker says the common divisor of 4 and 6 is 2, so LCM is 24 divided by 2.

Numerical verification
Steps
  1. Expression
    LCM⁡(a,b)=abgcd⁡(a,b)\operatorname{LCM}(a,b)=\frac{ab}{\gcd(a,b)}
    Explanation

    Start from the general formula shown on the board.

    Justification

    This is the alternative method introduced in the video.

    Shown in the video
  2. Expression
    gcd⁡(4,6)=2\gcd(4,6)=2
    Explanation

    Identify the greatest common divisor of 4 and 6.

    Justification

    Stated directly by the speaker.

    Shown in the video
  3. Expression
    LCM⁡(4,6)=4⋅62=242=12\operatorname{LCM}(4,6)=\frac{4\cdot 6}{2}=\frac{24}{2}=12
    Explanation

    Substitute and simplify.

    Justification

    Arithmetic evaluation of the displayed formula.

    Shown in the video
Conclusion

Using the GCD formula also gives LCM(4,6)=12.

Solving the first two congruences in the larger example

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The reordered system begins with x ≡ 1 (mod 4) and x ≡ 1 (mod 5).

  2. Audio
    Observation

    The speaker says x=1x=1 works for the first two and then it can be increased by LCM of 4 and 5, which is 20.

  3. Formula
    Observation

    The board writes 1(+20)1 (+20) and then 1, 21, ...

Numerical verification
Steps
  1. Expression
    x≡1(mod4),x≡1(mod5)x\equiv 1\pmod 4,\quad x\equiv 1\pmod 5
    Explanation

    Take the two congruences with equal remainders after reordering.

    Justification

    These are the first two lines shown in the reordered system.

    Shown in the video
  2. Expression
    x=1x=1
    Explanation

    Observe that 1 satisfies both congruences.

    Justification

    Because 1 leaves remainder 1 upon division by both 4 and 5.

    Shown in the video
  3. Expression
    LCM⁡(4,5)=4⋅5=20\operatorname{LCM}(4,5)=4\cdot 5=20
    Explanation

    Compute the step size for the combined solution set.

    Justification

    4 and 5 are coprime, so the product rule for LCM applies.

    Shown in the video
  4. Expression
    1, 21, 41,…1,\ 21,\ 41,\ldots
    Explanation

    Write the arithmetic progression of all solutions to the first two congruences.

    Justification

    Add successive multiples of 20 to the particular solution 1.

    Shown in the video
Conclusion

The common solutions of x≡1 (mod 4) and x≡1 (mod 5) are 1, 21, 41, ... , i.e. 1+20k1+20k.

Choosing the first candidate satisfying the third congruence

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says to find the first value in the sequence satisfying divisibility by 3; 1 doesn't work, 21 does work.

  2. Formula
    Observation

    The board underlines 21 in the sequence 1, 21, ... and writes 21 below the line x ≡ 0 (mod 3).

Uncertainties
  1. The clip ends before the next LCM update after incorporating modulus 3 is written out.

Numerical verification
Steps
  1. Expression
    1, 21, 41,…1,\ 21,\ 41,\ldots
    Explanation

    Start from the solution progression for the first two congruences.

    Justification

    This progression was derived immediately before this step.

    Shown in the video
  2. Expression
    1≢0(mod3)1\not\equiv 0\pmod 3
    Explanation

    Test the first candidate against x≡0 (mod 3).

    Justification

    1 is not divisible by 3, so it fails the third congruence.

    Shown in the video
  3. Expression
    21≡0(mod3)21\equiv 0\pmod 3
    Explanation

    Test the next candidate.

    Justification

    21 is divisible by 3, so it satisfies the third congruence.

    Shown in the video
  4. Expression
    x=21x=21
    Explanation

    Select 21 as the first common solution of the first three congruences.

    Justification

    It lies in the prior progression and meets the new modulus condition.

    Shown in the video
Conclusion

Within the displayed clip, 21 is identified as the first solution satisfying x≡1 (mod 4), x≡1 (mod 5), and x≡0 (mod 3).

Combining First Two Congruences

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    Shows 'x ≡ 1 (mod 4)', 'x ≡ 1 (mod 5)' leading to '1, 21, ... (+20)'.

Intuitive argument
Steps
  1. Expression
    x≡1(mod4),x≡1(mod5)x \equiv 1 \pmod 4, \quad x \equiv 1 \pmod 5
    Explanation

    Start with the first two conditions.

    Justification

    Given problem statement.

    Shown in the video
  2. Expression
    lcm(4,5)=20\text{lcm}(4,5) = 20
    Explanation

    Calculate the step size for numbers satisfying both.

    Justification

    LCM of coprime moduli is their product.

    Derived from the video
  3. Expression
    1,21,41,…1, 21, 41, \dots
    Explanation

    Generate the sequence starting from the smallest positive solution 1.

    Justification

    Definition of arithmetic progression with difference 20.

    Shown in the video
Conclusion

The candidates after two steps are 1+20k1 + 20k for integer k≥0k \ge 0.

Adding the Third Congruence

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    Adds 'x ≡ 0 (mod 3)' and updates sequence to '21, 81, ... (+60)'.

  2. Audio
    Observation

    Speaker mentions LCM of 20 and 3 is 60 because they are coprime.

Intuitive argument
Steps
  1. Expression
    lcm(20,3)=60\text{lcm}(20,3) = 60
    Explanation

    Update the step size to include the modulus 3 condition.

    Justification

    20 and 3 are coprime, so LCM is product.

    Shown in the video
  2. Expression
    21≡0(mod3)21 \equiv 0 \pmod 3
    Explanation

    Check which term in the previous sequence satisfies the new condition.

    Justification

    Direct calculation: 21 is divisible by 3.

    Shown in the video
  3. Expression
    21,81,141,…21, 81, 141, \dots
    Explanation

    New sequence starts at 21 with step 60.

    Justification

    Arithmetic progression definition.

    Shown in the video
Conclusion

The candidates after three steps are 21+60k21 + 60k for integer k≥0k \ge 0.

Finding the Correct Term Using Remainders Modulo 7

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    Writes out '0415263(+4)0 4 1 5 2 6 3 (+4)' under the sequence 21, 81...

  2. Audio
    Observation

    Speaker explains '21 modulo 7 is 0' and '60 modulo 7 is 4', then iterates adding 4.

Intuitive argument
Steps
  1. Expression
    21≡0(mod7)21 \equiv 0 \pmod 7
    Explanation

    Determine the starting remainder of the sequence modulo 7.

    Justification

    Direct calculation.

    Shown in the video
  2. Expression
    60≡4(mod7)60 \equiv 4 \pmod 7
    Explanation

    Determine the increment of remainders modulo 7.

    Justification

    Direct calculation (60=7×8+460 = 7 \times 8 + 4).

    Shown in the video
  3. Expression
    0→+44→+41→+45→+42→+46→+430 \xrightarrow{+4} 4 \xrightarrow{+4} 1 \xrightarrow{+4} 5 \xrightarrow{+4} 2 \xrightarrow{+4} 6 \xrightarrow{+4} 3
    Explanation

    Iteratively add 4 modulo 7 until the target remainder 3 is reached.

    Justification

    Applying the remainder sequence trick.

    Shown in the video
  4. Expression
    k=6k=6
    Explanation

    Count the number of steps taken to reach remainder 3.

    Justification

    It took 6 additions of 4 to go from 0 to 3 (mod 7).

    Derived from the video
Conclusion

The 6th term in the sequence 21+60k21 + 60k (starting count from k=0k=0) is the solution.

Calculating the Final Particular Solution

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    Writes '21+6∗60=38121 + 6 * 60 = 381'.

  2. Audio
    Observation

    Speaker says 'This is 21 plus 6 times 60... 381. That's the solution.'

Numerical verification
Steps
  1. Expression
    x=21+6⋅60x = 21 + 6 \cdot 60
    Explanation

    Substitute k=6k=6 into the sequence formula derived in step 2.

    Justification

    Result from derivation der-step3-remainder-search.

    Shown in the video
  2. Expression
    x=21+360x = 21 + 360
    Explanation

    Perform multiplication.

    Justification

    Arithmetic.

    Shown in the video
  3. Expression
    x=381x = 381
    Explanation

    Perform addition.

    Justification

    Arithmetic.

    Shown in the video
Conclusion

381 is a solution to the system.

Determining the General Solution Period

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    Writes '(+420)' and '801'.

  2. Audio
    Observation

    Speaker calculates LCM(60,7) = 420 and adds it to 381.

Intuitive argument
Steps
  1. Expression
    lcm(60,7)=420\text{lcm}(60,7) = 420
    Explanation

    Calculate the new period for the full system.

    Justification

    60 and 7 are coprime, so LCM is product.

    Shown in the video
  2. Expression
    x≡381(mod420)x \equiv 381 \pmod{420}
    Explanation

    State the general form of all solutions.

    Justification

    Property of linear congruence systems.

    Derived from the video
  3. Expression
    381+420=801381 + 420 = 801
    Explanation

    Find the next positive solution.

    Justification

    Arithmetic.

    Shown in the video
Conclusion

All solutions are of the form 381+420n381 + 420n for integer nn.

Generating Remainder Sequence Modulo 7

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    "The next element after three would be three plus four... seven modulo seven is zero. Then four, one and so on."

  2. Diagram
    Observation

    Sequence 0, 4, 1, 5, 2, 6, 3 written below the line '21, 81, ... (+60)'.

Numerical verification
Steps
  1. Expression
    21≡0(mod7)21 \equiv 0 \pmod 7
    Explanation

    Start with the current solution 21.

    Justification

    Direct calculation.

    Shown in the video
  2. Expression
    (21+60)≡4(mod7)(21 + 60) \equiv 4 \pmod 7
    Explanation

    Add step size 60. 60=7×8+460 = 7 \times 8 + 4, so remainder increases by 4.

    Justification

    Modular addition property.

    Derived from the video
  3. Expression
    0,4,1,5,2,6,30, 4, 1, 5, 2, 6, 3
    Explanation

    Continue adding 4 modulo 7 to generate the sequence.

    Justification

    Iterative modular arithmetic.

    Shown in the video
  4. Expression
    381≡3(mod7)381 \equiv 3 \pmod 7
    Explanation

    The target remainder 3 is found at the 6th index (0-indexed).

    Justification

    Matching target condition.

    Shown in the video
Conclusion

The sequence of remainders cycles through all residues modulo 7 because gcd(60, 7) = 1.

Worked examples · 6

Solve x ≡ 3 (mod 4), x ≡ 5 (mod 6), x ≡ 2 (mod 5)

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The entire worked example is written on screen from the initial system to the final solution list.

  2. Audio
    Observation

    The speaker solves it verbally in real time and announces 47 as the smallest solution.

Problem

Find the smallest value x satisfying the three displayed congruences.

Given
  1. x ≡ 3 (mod 4)

  2. x ≡ 5 (mod 6)

  3. x ≡ 2 (mod 5)

Goal

Find the smallest solution and then describe the full solution family.

Steps
  1. Expression
    3, 7, 11,…3,\ 7,\ 11,\ldots
    Explanation

    Begin with numbers congruent to 3 modulo 4.

    Justification

    These are generated by repeatedly adding the modulus 4.

    Shown in the video
  2. Expression
    1111
    Explanation

    Select 11 as the first number in that list that is congruent to 5 modulo 6.

    Justification

    The speaker checks 3, then 7, then 11 against the second congruence.

    Shown in the video
  3. Expression
    11, 23, 35, 47,…11,\ 23,\ 35,\ 47,\ldots
    Explanation

    Generate all numbers satisfying the first two congruences by adding 12.

    Justification

    12 = LCM(4,6), so adding 12 preserves both remainders.

    Shown in the video
  4. Expression
    4747
    Explanation

    Pick 47 as the first number in that sequence congruent to 2 modulo 5.

    Justification

    The speaker tests 11, 23, 35, and then 47 against the third congruence.

    Shown in the video
  5. Expression
    47, 107, 167, 227,…47,\ 107,\ 167,\ 227,\ldots
    Explanation

    Write the full family of solutions by adding 60 repeatedly.

    Justification

    60 = LCM(4,6,5) = LCM(12,5).

    Shown in the video
Answer

The smallest solution shown is 47, and the displayed solution family is 47, 107, 167, 227, ... .

Verification

The speaker verifies by direct modular checks: 47 modulo 5 is 2, and the earlier steps checked the modulo 4 and modulo 6 conditions.

Coprime LCM example: 5 and 12

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board writes LCM(5,12)=60.

  2. Audio
    Observation

    The speaker says like for 5 and 12 it's just 60.

Problem

Compute LCM(5,12).

Given
  1. The integers are 5 and 12.

  2. 5 and 12 are coprime.

Goal

Find their least common multiple.

Steps
  1. Expression
    gcd⁡(5,12)=1\gcd(5,12)=1
    Explanation

    Recognize that 5 and 12 share no common divisor greater than 1.

    Justification

    Stated implicitly by the coprime condition in the example.

    Shown in the video
  2. Expression
    LCM⁡(5,12)=5⋅12=60\operatorname{LCM}(5,12)=5\cdot 12=60
    Explanation

    Use the product rule for coprime integers.

    Justification

    If two numbers are coprime, their LCM equals their product.

    Shown in the video
Answer

60

Verification

60 is divisible by both 5 and 12, and no smaller positive common multiple exists because the numbers are coprime.

Non-coprime LCM example and consequence of using the product

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board writes 4,6 -> 12 and later shows 11(+24)11 (+24) and 11, 35, 59, ...

  2. Audio
    Observation

    The speaker says for 4 and 6 their product is 24 and yet there is a smaller multiple, 12, and that using product instead of LCM misses 47.

Uncertainties
  1. The full original congruence pair that produced the solution 11 is not restated in this clip, but the numerical illustration 11, 35, 59, ... and the missed value 47 are explicit.

Problem

Compare LCM(4,6) with the product 4⋅64\cdot 6 and illustrate what goes wrong if one steps by 24 instead of 12.

Given
  1. The integers are 4 and 6.

  2. Their product is 24.

  3. A previous solution is 11.

  4. The correct step should be LCM(4,6)=12.

Goal

Show that using the product as the step can omit valid solutions.

Steps
  1. Expression
    4⋅6=244\cdot 6=24
    Explanation

    Compute the product of the two moduli.

    Justification

    Direct arithmetic.

    Shown in the video
  2. Expression
    LCM⁡(4,6)=12\operatorname{LCM}(4,6)=12
    Explanation

    Identify the true least common multiple.

    Justification

    Shown on the board and explained verbally.

    Shown in the video
  3. Expression
    11, 35, 59,…11,\ 35,\ 59,\ldots
    Explanation

    Generate the incorrect progression by repeatedly adding 24.

    Justification

    This is the sequence written on the board for the mistaken method.

    Shown in the video
  4. Expression
    47 is missed47\text{ is missed}
    Explanation

    Note that 47, a valid solution for the earlier congruences, does not appear in the incorrect progression.

    Justification

    Stated by the speaker.

    Shown in the video
Answer

The correct LCM is 12; using 24 as the step gives 11, 35, 59, ... and misses 47.

Verification

Adding 12 instead of 24 would include intermediate values such as 23 and 35 and eventually 47, so the smaller LCM step is necessary to avoid skipping solutions.

Partial CRT example with moduli 4, 5, and 3

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board displays x ≡ 1 (mod 4), x ≡ 0 (mod 3), x ≡ 1 (mod 5), x ≡ 3 (mod 7), then reorders to put x ≡ 1 (mod 5) second.

  2. Audio
    Observation

    The speaker solves the first two congruences to get 1, 21, 41, ... and then selects 21 as the first value divisible by 3.

Uncertainties
  1. The clip ends before the fourth congruence modulo 7 is processed, so the final full CRT solution is not reached within this segment.

Problem

Solve the reordered system beginning with x ≡ 1 (mod 4), x ≡ 1 (mod 5), x ≡ 0 (mod 3).

Given
  1. x ≡ 1 (mod 4)

  2. x ≡ 1 (mod 5)

  3. x ≡ 0 (mod 3)

  4. The system is reordered to place the two congruences with remainder 1 together.

Goal

Find the first common solution after incorporating the third congruence.

Steps
  1. Expression
    x≡1(mod4),x≡1(mod5)x\equiv 1\pmod 4,\quad x\equiv 1\pmod 5
    Explanation

    Start with the two equal-remainder congruences.

    Justification

    Reordering is allowed and makes the first step immediate.

    Shown in the video
  2. Expression
    x=1x=1
    Explanation

    Take 1 as a particular solution of the first two congruences.

    Justification

    1 leaves remainder 1 modulo both 4 and 5.

    Shown in the video
  3. Expression
    LCM⁡(4,5)=20\operatorname{LCM}(4,5)=20
    Explanation

    Compute the combined step size.

    Justification

    4 and 5 are coprime, so their LCM is their product.

    Shown in the video
  4. Expression
    1, 21, 41,…1,\ 21,\ 41,\ldots
    Explanation

    List the arithmetic progression of solutions to the first two congruences.

    Justification

    All solutions are 1 plus multiples of 20.

    Shown in the video
  5. Expression
    21≡0(mod3)21\equiv 0\pmod 3
    Explanation

    Search the progression for the first term divisible by 3.

    Justification

    1 is not divisible by 3, but 21 is.

    Shown in the video
  6. Expression
    x=21x=21
    Explanation

    Select 21 as the first solution satisfying the first three congruences.

    Justification

    It belongs to the prior progression and meets the modulo-3 condition.

    Shown in the video
Answer

21 is the first displayed common solution of x≡1 (mod 4), x≡1 (mod 5), and x≡0 (mod 3).

Verification

21≡1 (mod 4), 21≡1 (mod 5), and 21≡0 (mod 3), so it satisfies the three congruences processed in this clip.

Solving a System of Four Linear Congruences

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    The entire video is dedicated to solving this specific system.

Problem

Find an integer xx such that: x≡1(mod4)x \equiv 1 \pmod 4 x≡1(mod5)x \equiv 1 \pmod 5 x≡0(mod3)x \equiv 0 \pmod 3 x≡3(mod7)x \equiv 3 \pmod 7

Given
  1. Four linear congruences with moduli 4, 5, 3, 7.

  2. Moduli are pairwise coprime.

Goal

Find the smallest positive integer solution and describe the set of all solutions.

Steps
  1. Expression
    Combine mod 4 and mod 5→step 20, start 1\text{Combine mod 4 and mod 5} \rightarrow \text{step } 20, \text{ start } 1
    Explanation

    Identify sequence 1,21,41,…1, 21, 41, \dots

    Justification

    LCM(4,5)=20 and 1 satisfies both.

    Shown in the video
  2. Expression
    Add mod 3→step 60, start 21\text{Add mod 3} \rightarrow \text{step } 60, \text{ start } 21
    Explanation

    Identify sequence 21,81,141,…21, 81, 141, \dots

    Justification

    LCM(20,3)=60 and 21 is the first term divisible by 3.

    Shown in the video
  3. Expression
    Search mod 7 remainders: 0,4,1,5,2,6,3\text{Search mod 7 remainders: } 0, 4, 1, 5, 2, 6, 3
    Explanation

    Find that the 6th step (index 6) yields remainder 3.

    Justification

    21≡021 \equiv 0, 60≡460 \equiv 4. Adding 4 six times modulo 7 gives 3.

    Shown in the video
  4. Expression
    x=21+6⋅60=381x = 21 + 6 \cdot 60 = 381
    Explanation

    Calculate the specific solution.

    Justification

    Substituting index 6 into the sequence formula.

    Shown in the video
  5. Expression
    General period lcm(60,7)=420\text{General period } \text{lcm}(60,7) = 420
    Explanation

    Determine the spacing of all solutions.

    Justification

    LCM of current step and new modulus.

    Shown in the video
Answer

Smallest positive solution: 381. General solution: x≡381(mod420)x \equiv 381 \pmod{420}.

Verification

Check 381: 381=4×95+1381 = 4 \times 95 + 1 (ok), 381=5×76+1381 = 5 \times 76 + 1 (ok), 381=3×127+0381 = 3 \times 127 + 0 (ok), 381=7×54+3381 = 7 \times 54 + 3 (ok).

Solving x ≡ 1 (mod 4), x ≡ 1 (mod 5), x ≡ 0 (mod 3), x ≡ 3 (mod 7)

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Full board work showing the step-by-step construction.

Problem

Find integer x satisfying the system of four congruences.

Given
  1. x ≡ 1 (mod 4)

  2. x ≡ 1 (mod 5)

  3. x ≡ 0 (mod 3)

  4. x ≡ 3 (mod 7)

Goal

Find the smallest positive integer x.

Steps
  1. Expression
    x∈{1,21,… }(mod20)x \in \{1, 21, \dots\} \pmod{20}
    Explanation

    Combine mod 4 and mod 5. Since x≡1 for both, x≡1 mod 20.

    Justification

    LCM of 4 and 5 is 20.

    Shown in the video
  2. Expression
    x∈{21,81,… }(mod60)x \in \{21, 81, \dots\} \pmod{60}
    Explanation

    Check 1, 21... against mod 3. 21 is div by 3. New step size is LCM(20,3)=60.

    Justification

    LCM of 20 and 3 is 60.

    Shown in the video
  3. Expression
    21+6⋅60=38121 + 6 \cdot 60 = 381
    Explanation

    Check 21, 81... against mod 7. Remainders are 0, 4, 1, 5, 2, 6, 3. Target 3 is at index 6.

    Justification

    Iterative search bounded by modulus 7.

    Shown in the video
Answer

381

Verification

381 % 4=14 = 1; 381 % 5=15 = 1; 381 % 3=03 = 0; 381 % 7=37 = 3.

Visual events · 11

Initial labeling of the congruence parts

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    Blue arrows point to 3 and 4 in the first congruence, labeled remainder and modulus.

Objects
  1. The three congruences

  2. Blue arrows

  3. The words remainder and modulus

Changes
  1. The labels identify which number is the remainder and which is the modulus.

Invariants
  1. The congruences themselves do not change during this labeling.

Interpretation

The visual annotation introduces the terminology needed to read the system.

Animated construction of the solution sequences

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    The board progressively writes 3, 7, 11, ... (+4), then 11, 23, 35, ... (+12), then 47(+60)47 (+60), then solutions: 47, 107, 167, ...

  2. Diagram
    Observation

    Colored arrows and dots mark which congruence is currently being used.

Objects
  1. Arithmetic sequences

  2. Colored arrows

  3. Underlined candidate values

Changes
  1. The first sequence is built from the modulo 4 condition.

  2. The second sequence is built after matching the modulo 6 condition.

  3. The third stage highlights 47 after matching the modulo 5 condition.

  4. The final line lists the full solution family.

Invariants
  1. Each displayed sequence is an arithmetic progression.

  2. The step size changes only when a new group of congruences has been incorporated.

Interpretation

The visual progression encodes the iterative CRT-style search: restrict to one congruence, then intersect with the next by scanning the current progression.

Symbolic generalization to four congruences

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    The screen switches to a four-line symbolic system and a long sequence formula with LCM(m1m_1,m2m_2,m3m_3).

  2. Animation
    Observation

    White circles and underlines emphasize m1m_1, m2m_2, m3m_3 and the sequence terms.

Uncertainties
  1. The handwritten a appears near the end, but the continuation after a is not completed onscreen.

Objects
  1. The system x ≡ rir_i (mod mim_i)

  2. The sequence x0+kx_0 + k·LCM(m1m_1,m2m_2,m3m_3)

  3. Handwritten a

Changes
  1. The concrete numbers are replaced by symbolic moduli and remainders.

  2. The previously used step 12 is generalized to LCM(m1m_1,m2m_2,m3m_3).

  3. A new symbol a is introduced for the first term satisfying the fourth congruence.

Invariants
  1. The structure remains an arithmetic progression of simultaneous solutions.

  2. The method still searches within that progression for the next congruence.

Interpretation

The board abstracts the worked example into a reusable pattern for larger systems.

General CRT setup and incremental update

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    A general four-congruence system is shown at upper left, with a blue arrow pointing down to a solution sequence involving x0x_0 and LCM(m1m_1,m2m_2,m3m_3).

  2. Animation
    Observation

    Yellow highlighting moves among the moduli m1m_1, m2m_2, m3m_3, and m4m_4 while the lower line a (+ LCM) is written.

Objects
  1. System of four congruences x ≡ rir_i (mod mim_i)

  2. Blue arrow

  3. Sequence x0x_0, x0x_0+LCM(m1m_1,m2m_2,m3m_3), ...

  4. Handwritten line a (+ LCM)

  5. Yellow highlights on moduli

Changes
  1. Yellow emphasis shifts from grouped moduli to individual moduli.

  2. The lower handwritten expression is completed as a (+ LCM).

Invariants
  1. The upper system remains a simultaneous congruence problem in x.

  2. The lower sequence represents candidate solutions generated by adding a common period.

Interpretation

The visual layout connects a previously solved subsystem to a new solution progression after incorporating another modulus.

LCM rules and counterexample display

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    The board clears to a new section headed by LCM(a, b) = a∗ba*b if a and b are coprime.

  2. Animation
    Observation

    Examples are added sequentially: LCM(5,12)=60, then 4,6 -> 12, then the incorrect progression 11(+24)11 (+24) and 11, 35, 59, ..., then the formula LCM = a⋅ba\cdot b / GCD.

Objects
  1. Formula LCM(a,b)=a∗ba*b for coprime a,b

  2. Example LCM(5,12)=60

  3. Example 4,6 -> 12

  4. Incorrect progression 11, 35, 59, ...

  5. Formula LCM = a⋅ba\cdot b / GCD

Changes
  1. The board moves from the coprime product rule to a non-coprime counterexample.

  2. A wrong arithmetic progression is written and then contrasted with the correct LCM idea.

  3. The general GCD formula is added at the bottom right.

Invariants
  1. All displayed content concerns computation of least common multiples.

  2. The examples are used to justify when the product rule is valid and when it is not.

Interpretation

The visual sequence teaches that coprime moduli allow a product shortcut, while non-coprime moduli require the true LCM or the GCD formula.

Marking the wrong progression

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    Red diagonal strokes cross out the incorrect progression 11, 35, 59, ...

Objects
  1. Sequence 11, 35, 59, ...

  2. Red crossing-out strokes

Changes
  1. The incorrect sequence is visually invalidated.

Invariants
  1. The numbers themselves remain visible under the red marks.

Interpretation

The red cross indicates that stepping by 24 rather than by the LCM 12 is not an acceptable method.

Reordering and partial solution of the larger CRT example

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    A new four-line congruence system appears, then the third line x ≡ 1 (mod 5) is moved upward next to x ≡ 1 (mod 4).

  2. Animation
    Observation

    The solution line 1(+20)1 (+20) is written, expanded to 1, 21, ..., and then 21 is underlined and copied below the modulo-3 congruence.

Uncertainties
  1. The clip ends before the modulo-7 congruence is processed.

Objects
  1. Original system x ≡ 1 (mod 4), x ≡ 0 (mod 3), x ≡ 1 (mod 5), x ≡ 3 (mod 7)

  2. Reordered system with x ≡ 1 (mod 5) moved up

  3. Line 1(+20)1 (+20)

  4. Sequence 1, 21, ...

  5. Underlined 21

  6. Copied 21 below x ≡ 0 (mod 3)

Changes
  1. The congruence order changes to group equal remainders.

  2. A particular solution 1 is extended by step 20.

  3. The candidate 21 is selected as the first value divisible by 3.

Invariants
  1. The unknown remains x throughout.

  2. The first two congruences continue to define the same solution progression 1+20k1+20k.

Interpretation

The animation demonstrates the practical CRT workflow: reorder for convenience, combine easy congruences, then scan the resulting arithmetic progression for compatibility with the next modulus.

Progressive Construction of Solution on Screen

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    Text lines appear sequentially: first the initial congruences, then the derived sequences with arrows indicating progression, then the remainder calculation row, and finally the solution equation.

Objects
  1. Congruence equations

  2. Arithmetic sequences

  3. Remainder sequence

  4. Final calculation

Changes
  1. Lines of text are added from top to bottom.

  2. Arrows connect related concepts (e.g., congruence to sequence).

  3. Colors distinguish different stages (blue for first step, yellow/orange for second, white for remainder search).

Invariants
  1. The original problem statement remains visible at the top throughout.

  2. The logical flow is strictly sequential.

Interpretation

The visual layout mirrors the iterative algorithm: reduce the problem step-by-step, tracking the current candidate set and its properties.

Emphasis on Target Remainder Discovery

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    The number '3' in the remainder sequence '0 4 1 5 2 6 3' is highlighted/circled or emphasized when found.

Uncertainties
  1. Exact highlighting style (circle vs underline) might vary slightly in perception, but emphasis is clear.

Objects
  1. Remainder sequence digits

Changes
  1. Attention shifts to the digit '3' at the end of the sequence.

Invariants
  1. The sequence itself does not change, only the focus.

Interpretation

Marks the successful termination of the search loop in the remainder trick.

Visualizing the Remainder Cycle

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    Green curved arrow drawn from the final '0' in the remainder sequence back to the initial '0'.

Objects
  1. Remainder sequence 0, 4, 1, 5, 2, 6, 3, 0

  2. Green arrow

Changes
  1. Arrow connects end of sequence to start.

Invariants
  1. The sequence values themselves do not change, only the annotation.

Interpretation

Demonstrates that the remainders repeat periodically, justifying why the search stops after checking mm values.

Displaying Algorithmic Complexity

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    Text 'O(m2+m3+m4)O(m_2 + m_3 + m_4)' appears on the right side of the board.

Objects
  1. Big-O notation formula

Changes
  1. Formula appears as speaker discusses programmer perspective.

Interpretation

Summarizes the computational cost of the method shown.

Misconceptions · 6

Mistaking the first found value for the unique solution

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    After identifying 11, the speaker immediately says, "Not the only one though."

  2. Audio
    Observation

    After identifying 47, the speaker again says, "Again, not the only one."

Misconception

Once a number such as 11 or 47 satisfies the current congruences, it may seem to be the only solution.

Clarification

The video explicitly states that these are only the smallest values found so far; all further solutions are obtained by adding the appropriate LCM.

Thinking any increment preserves the earlier congruences

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker specifies that one may increase by "something divisible by all moduli so far" and computes LCM(4,6)=12.

Misconception

One might think that after finding a simultaneous solution, any larger number still satisfies the same system.

Clarification

Only increments divisible by all moduli already incorporated preserve all current remainders; in the example that minimal positive increment is 12, then later 60.

Mistaking the product for the LCM

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says it doesn't work if there is some common divisor and warns that using product instead of LCM would miss some values and maybe also the solution.

  2. Formula
    Observation

    The board contrasts 4,6 -> 12 with the incorrect progression 11, 35, 59, ...

Misconception

One may think that for any two moduli the step between compatible solutions is their product.

Clarification

The product equals the LCM only when the moduli are coprime. For non-coprime moduli such as 4 and 6, the correct step is 12, not 24; using 24 can skip valid solutions such as 47.

Thinking the written order of congruences matters

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker explicitly says he can reorder congruences to make computations easier.

Misconception

Learners may assume the congruences must be processed in the order they are first displayed.

Clarification

Simultaneous congruences may be reordered freely. The video uses this to place equal-remainder congruences together and simplify the first step.

Misconception about LCM Calculation

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    Speaker warns: 'Just remember, if they are not coprime, it's not simply a product.'

Misconception

Assuming LCM(a,b) is always a∗ba*b.

Clarification

LCM(a,b) = a∗ba*b only holds if a and b are coprime. If they share factors, the LCM is smaller than the product.

Misconception: Infinite Search for CRT

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    "You will not go forever. Actually if you try to go for more than seven steps... either you made a mistake or there is no solution..."

Misconception

One might think that if a solution isn't found quickly, one must continue searching indefinitely or that a solution might exist far beyond the modulus range.

Clarification

Due to the cyclic nature of remainders modulo mm, if a valid remainder hasn't appeared within mm steps, it never will. The search space is strictly bounded by the modulus.

Concept relations · 11

Generating all solutions to one congruence → Updating the solution family with the LCM of combined moduli

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker first adds 4 to stay within one congruence, then adds 12 after combining two congruences.

  2. Formula
    Observation

    The board moves from (+4) to (+12).

Generalizes
Explanation

The single-congruence rule 'add the modulus' is generalized to multiple congruences as 'add the LCM of the moduli already satisfied'.

Updating the solution family with the LCM of combined moduli → General solution family for the worked system

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker finds 47 and then says the solution can be increased by LCM(4,6,5)=60.

  2. Formula
    Observation

    The board shows 47(+60)47 (+60) and the list 47, 107, 167, ...

Application
Explanation

The LCM-update rule is applied once more, now to all three moduli, to produce the complete solution family.

Smallest solution of the worked three-congruence system → Iterative pattern for more than three congruences

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says, "This method still works if there are more congruences."

  2. Formula
    Observation

    The concrete numbers are replaced by rir_i, mim_i, x0x_0, and LCM(m1m_1,m2m_2,m3m_3).

Generalizes
Explanation

The worked three-congruence procedure is abstracted into a symbolic iterative pattern for a larger system.

LCM of coprime integers → Incremental CRT solution sequence

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker uses the coprime product rule when combining moduli 4 and 5 to get step 20.

  2. Formula
    Observation

    LCM(4,5)=20 is justified by coprimality in the worked example.

Application
Explanation

The CRT incremental method relies on computing the LCM of the moduli already combined; when those moduli are coprime, the product rule supplies that LCM immediately.

General LCM formula using GCD → LCM of coprime integers

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board introduces LCM = a⋅ba\cdot b / GCD right after discussing the non-coprime pair 4 and 6.

Generalizes
Explanation

The GCD formula works for arbitrary positive integers and therefore extends the coprime product rule to the non-coprime case.

Reordering congruences for convenience → Equal-remainder shortcut in CRT

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says reordering helps because equal remainders can then be seen together.

  2. Diagram
    Observation

    The system is reordered so that the two congruences with remainder 1 become adjacent.

Prerequisite
Explanation

Reordering the system is what makes the equal-remainder shortcut visually and computationally immediate in the worked example.

Incremental CRT solution sequence → Partial CRT example with moduli 4, 5, and 3

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The example writes 1(+20)1 (+20), then 1, 21, ..., and searches that progression for divisibility by 3.

Application
Explanation

The partial CRT example is a direct application of the incremental solution-sequence method.

Constructive CRT Solution Method via Iterative LCM Combination → LCM of Coprime Integers

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    Speaker repeatedly uses LCM to determine step sizes in the CRT method.

Application
Explanation

The constructive CRT method relies on calculating LCMs of moduli to find the periodicity of partial solution sets.

Solving a System of Four Linear Congruences → Constructive CRT Solution Method via Iterative LCM Combination

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    The example problem is solved using the described method.

Application
Explanation

The main example serves as a concrete demonstration of the abstract CRT solution method.

Periodicity of Remainders in CRT Search → Bounded Search for CRT Solutions

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    Speaker links the cycle observation directly to the limit of 7 steps.

Proof dependency
Explanation

The periodicity of the remainder sequence (ki-remainder-cycle) is the mathematical reason why the search is bounded by the modulus (claim-no-solution-condition).

Constructive Solution of CRT System → Time Complexity of Iterative CRT Method

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    "If you are a programmer... what's important for you is that you need m4 steps... So that's the complexity..."

Application
Explanation

The specific iterative method demonstrated (ki-crt-system) leads directly to the stated time complexity (claim-complexity-bound).

Find an answer · 17

How does the video find the smallest solution to x ≡ 3 (mod 4), x ≡ 5 (mod 6), x ≡ 2 (mod 5)?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker asks for the smallest value x and later identifies 47 as the smallest solution.

  2. Formula
    Observation

    The final highlighted answer is 47.

Knowledge points
  1. Congruence notation in the example
  2. Generating all solutions to one congruence
  3. Updating the solution family with the LCM of combined moduli
  4. Smallest solution of the worked three-congruence system

Why does the step size change from 4 to 12 after satisfying the first two congruences?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker explains that 12 is the LCM of 4 and 6 and that adding it preserves both remainders.

  2. Formula
    Observation

    The sequence becomes 11, 23, 35, ... (+12).

Knowledge points
  1. Updating the solution family with the LCM of combined moduli

Why are all solutions of the worked system obtained by adding 60 to 47?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says the next increment is the LCM of 4, 6, 5 and computes it as 60.

  2. Formula
    Observation

    The board shows 47(+60)47 (+60) and solutions: 47, 107, 167, ...

Knowledge points
  1. General solution family for the worked system

How does the same method extend from three congruences to a four-congruence system?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker states that the method still works with more congruences and introduces x0x_0 and a.

  2. Formula
    Observation

    The generalized sequence with LCM(m1m_1,m2m_2,m3m_3) is displayed.

Uncertainties
  1. The clip ends before the final continuation after a is fully written.

Knowledge points
  1. Iterative pattern for more than three congruences

Why must CRT use the LCM of the moduli instead of their product when the moduli are not coprime?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker explains that using product instead of LCM misses values and gives the 47 example.

Knowledge points
  1. Incremental CRT solution sequence
  2. LCM of coprime integers
  3. General LCM formula using GCD
  4. Mistaking the product for the LCM

When is the least common multiple of two numbers just their product?

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board states LCM(a,b)=a∗ba*b if a and b are coprime.

Knowledge points
  1. LCM of coprime integers
  2. Product rule for LCM requires coprimality

What formula computes LCM(a,b) for non-coprime integers?

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board writes LCM = a⋅ba\cdot b / GCD.

Knowledge points
  1. General LCM formula using GCD
  2. Computing LCM(4,6) with the GCD formula

Can the congruences in a CRT system be solved in a different order than written?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says he can reorder congruences to make computations easier.

Knowledge points
  1. Reordering congruences for convenience
  2. Reordering a congruence system preserves the solution set

What shortcut applies when two congruences have the same remainder?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says equal remainders let him immediately see the solution for them.

Knowledge points
  1. Equal-remainder shortcut in CRT
  2. Equal remainders give an immediate particular solution

Why is 21 chosen as the next solution after combining modulo 4 and modulo 5?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker tests 1 and then 21 against divisibility by 3.

Knowledge points
  1. Partial CRT example with moduli 4, 5, and 3
  2. Choosing the first candidate satisfying the third congruence

How does stepping by 24 instead of 12 cause the value 47 to be missed?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The speaker says the incorrect progression misses 47.

Uncertainties
  1. The earlier congruences producing 11 and 47 are not fully restated in this clip.

Knowledge points
  1. Non-coprime LCM example and consequence of using the product
  2. Mistaking the product for the LCM

How do I combine multiple modular congruences step-by-step?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    Video explains the process of combining congruences one by one.

Knowledge points
  1. Constructive CRT Solution Method via Iterative LCM Combination
  2. Combining First Two Congruences
  3. Adding the Third Congruence
Coverage and review notes

Covered · Opening statement of the problem and visual labeling of remainder and modulus.

Covered · Construction of the first sequence and selection of 11 as the first match for the second congruence.

Covered · Explanation that the combined solution family advances by LCM(4,6)=12.

Covered · Scanning 11, 23, 35, 47 to satisfy the third congruence and identifying 47 as the smallest solution.

Covered · Computation of LCM(4,6,5)=60 and listing of the full solution family.

Covered · Symbolic generalization to four congruences; the clip ends while introducing the next step after finding a.

Covered · General CRT system and incremental solution sequence are shown and explained.

Covered · Coprime LCM rule and the non-coprime counterexample 4,6 are introduced.

Covered · The incorrect progression 11, 35, 59, ... is used to show missed solutions.

Covered · LCM(4,6) is computed by listing multiples.

Covered · The general formula LCM = ab / GCD is written and applied to 4 and 6.

Covered · The larger congruence system is reordered to group equal remainders.

Covered · The first two congruences are combined into the progression 1, 21, 41, ...

Covered · The sequence is searched for the first value divisible by 3, yielding 21 before the clip ends.

Covered · Initial setup and combining first two congruences (mod 4, mod 5).

Covered · Adding the third congruence (mod 3) and updating the sequence/step size.

Covered · Applying the remainder trick to satisfy the fourth congruence (mod 7).

Covered · Calculating the specific numerical solution 381.

Covered · Determining the general solution period and warning about non-coprime LCMs.

Covered · Introduction to the extra topic, pointing to the remainder sequence.

Covered · Detailed explanation of the remainder cycle and visual demonstration.

Covered · Logical consequence of the cycle: bounded search and no-solution detection.

Covered · Discussion of algorithmic complexity for programmers and closing remarks.

Explore the knowledge in this video

Open video knowledge graph →

  • Chinese remainder theorem ExplanationAt 5:00
    Why this connection?

    Reviewed English material v1: card "Iterative CRT Method" at 5:00 — A strategy to solve systems of linear congruences by combining them one by one. At each stage, maintain an arithmetic progression of candidates. When adding a new congruence x≡r(modm)x \equiv r \pmod m, update the step size to lcm(current step,m)\text{lcm}(\text{current step}, m) and find the first term in the current progression that satisfies the new condition.

  • Algorithmic complexity ApplicationAt 8:16
    Why this connection?

    Reviewed English material v1: card "Complexity of Iterative CRT" at 8:16 — The constructive method for the Chinese Remainder Theorem described has a time complexity proportional to the sum of the moduli involved in the sequential checks. For a system with moduli m1,m2,…,mkm_1, m_2, \dots, m_k, the complexity is roughly O(∑i=2kmi)O(\sum_{i=2}^k m_i).

Questions this video answers

Understand why

↗
Understand why

↗
Meet the concept

↗
Know when to use it

↗
Meet the concept

↗
Meet the concept

↗
Find a method

↗
Find a method

↗