Теория чисел

Congruence Modulo Checker

Easily check if two numbers are congruent modulo another number. Understand modular arithmetic with visualizations and examples.

Result

Congruence Status:

Visualization

Number 1:

Remainder when divided by Modulus:

Number 2:

Remainder when divided by Modulus:

Congruence Relation:

Understanding Congruence Modulo

In number theory, two integers a and b are said to be congruent modulo n if they have the same remainder when divided by a positive integer n, called the modulus. Mathematically, this is written as:

$$ a \equiv b \pmod{n} $$

This is equivalent to saying that the difference a - b is an integer multiple of n, or that n divides a - b. Congruence modulo is a fundamental concept in number theory and is used in various areas of mathematics and computer science.

  • Example: 17 and 5 are congruent modulo 6 because both 17 ÷ 6 and 5 ÷ 6 have the same remainder, which is 5. Thus, 17 ≡ 5 (mod 6).
  • Use Cases: Cryptography, computer science, and various branches of mathematics rely on modular arithmetic and congruence relations.

Learn more about congruence modulo on Wikipedia or explore number theory textbooks for deeper insights.