Skip to content
Gioi Toan
Start learning
A thick book and a smiling magnifying glass

What is Modular arithmetic method?

Short answer

The modular arithmetic method is a way of using remainders when dividing by a suitable number to rule out values that cannot be solutions of a Diophantine equation.

Type
Method
First learned
Grade 8
Also called
xét số dư loại nghiệm
In English
modular arithmetic method

Explanation

The modular arithmetic method is a way of solving an equation by looking at the remainders of both sides when divided by some number. If the two sides have different remainders, that value cannot be a solution, which helps us quickly rule out possibilities.

This method is often used for Diophantine equations, especially equations containing exponents or complicated expressions. By choosing a suitable divisor, we narrow down the solution set and find the correct solution.

For example, to solve the equation x2=3y+1x^2 = 3y + 1, look at the remainder of x2x^2 when divided by 3: a square number divided by 3 leaves a remainder of only 0 or 1. The right-hand side 3y+13y + 1 divided by 3 leaves a remainder of 1, so x2x^2 must leave a remainder of 1 when divided by 3; therefore xx is not divisible by 3. From that we can rule out the values xx that are divisible by 3.

Examples

Example 1

Solve the Diophantine equation x2=3y+2x^2 = 3y + 2.

See the solution to example 1

Look at the remainder of x2x^2 when divided by 3: every square number divided by 3 leaves a remainder of only 0 or 1. The right-hand side 3y+23y + 2 divided by 3 leaves a remainder of 2. Therefore no integer x,yx, y satisfies it. The equation has no solution.

Common mix-ups

  • Looking at remainders does not always rule out all solutions; you may still have to try the remaining cases directly.