Four-clock alignment
Modular Arithmetic
Find the smallest nonnegative integer x such that x mod 11 = 5, x mod 13 = 7, x mod 17 = 9, and x mod 19 = 0.
Solve using mathematics, algorithms, or your own code offline. Submit only the final integer here—no program, expression, graph, or written proof.
Check your answer without signing in. Sign in to save your progress.
How to approach this problem
Combine congruences one at a time. Write x as the solution of the first condition plus a multiple of its modulus, then solve for that multiplier using the next congruence. Keep the least nonnegative representative.
Worked example with different values
x ≡ 2 (mod 3) and x ≡ 1 (mod 5) give x = 11 modulo 15; 11 is the smallest nonnegative solution.
Apply the same reasoning to the challenge. This example is a separate practice problem.
Learn the technique: Number theory: divisors, gcd and modular arithmetic