Number properties refer to the fundamental characteristics and behaviors of numbers, such as evenness, oddness, divisibility, and prime status. Modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" after reaching a certain value, known as the modulus. It is widely used in number theory, cryptography, and computer science, enabling calculations within a finite set of numbers and analyzing patterns in remainders.
Number properties refer to the fundamental characteristics and behaviors of numbers, such as evenness, oddness, divisibility, and prime status. Modular arithmetic is a system of arithmetic for integers, where numbers "wrap around" after reaching a certain value, known as the modulus. It is widely used in number theory, cryptography, and computer science, enabling calculations within a finite set of numbers and analyzing patterns in remainders.
What is modular arithmetic?
Modular arithmetic studies numbers with wrap-around at a fixed modulus n. We write a ≡ b (mod n) if n divides a−b.
How do I tell if a ≡ b (mod n)?
Subtract b from a and check if the result is a multiple of n; equivalently, the remainders when a and b are divided by n are the same.
What does gcd mean, and why is it important?
gcd(a,b) is the greatest common divisor—largest number that divides both. It helps with divisibility, simplifying fractions, and solving equations.
What is a modular inverse and when does it exist?
An x is a modular inverse of a modulo n if a·x ≡ 1 (mod n). Such an inverse exists exactly when gcd(a,n) = 1.