Skip to content
← All questions

Why does the step size in the iterative CRT method update to the LCM of the combined moduli?

The step size updates to the least common multiple (LCM) of the moduli already satisfied because adding the LCM to a current solution preserves the remainders for all those moduli. Any increment divisible by all the current moduli will not change the remainder modulo any of them, and the LCM is the smallest positive such increment.

Conditions

  • A number currently satisfies a set of congruences.
  • The new step size must preserve the remainders for all those congruences.

Reasoning, step by step

  1. Identify the moduli of the congruences currently satisfied.
  2. Compute the least common multiple (LCM) of these moduli.
  3. Add the LCM to the current solution to generate the next candidate.
  4. Observe that because the LCM is divisible by each modulus, the remainder modulo each modulus remains unchanged.

Example

In the video, after finding 11 satisfies x ≡ 3 (mod 4) and x ≡ 5 (mod 6), 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.'

Common misconceptions

  • Thinking that any number added to a solution will preserve the remainders.
  • Assuming the step size should be the product of the moduli, which can skip valid solutions if the moduli are not coprime.

Watch the explanation

Connected concepts

Explore next

Related questions

Understand why

↗
Meet the concept

↗
Find a method

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.