Definition 20.1.1 · Congruence
means the number leaves the same remainder as when divided by .
Work with remainders instead of giant numbers: wrap around a clock dial, find last digits of huge powers, and combine remainder conditions.
In this section you will be able to write remainders as congruences, and use negative remainders when they are easier.
It is 10 o’clock. What time will it be in 5 hours? Not 15 o’clock! The clock wraps around, so it is 3 o’clock.
A clock only remembers the remainder. Modular arithmetic does the same with any number of spots on the dial. When two numbers land on the same spot, you say they are congruent.
means the number leaves the same remainder as when divided by .
Mods can also be negative. For example a number that is is also . This can be useful for simplifying calculations when raising this number to large powers.
In this section you will be able to multiply remainders instead of big numbers, to find last digits and remainders fast.
What is the units digit of 23 × 47? You could multiply it all out. Or you could just multiply 3 × 7 = 21. The answer is 1 either way!
The product rule says you can swap each number for its remainder before you multiply. The last digit of a product depends only on the last digits of the factors.
If and , then
This is useful when you have to calculate the last few digits of an expression, because then you only have to consider that many digits for all of your terms.
If is an even positive integer, the double factorial notation represents the product of all the even integers from 2 to . For example, . What is the units digit of the following sum?
Look at . What is its units digit?
Find the remainder when is divided by 1000.
The product rule lets you find each term and multiply. and . What is ? Write it as a negative number.
The product of the two 99-digit numbers and has thousands digit and units digit . What is the sum of and ?
If is an even positive integer, the double factorial notation represents the product of all the even integers from 2 to . For example, . What is the units digit of the following sum?
Find the remainder when is divided by 17.
In this section you will be able to find remainders of huge powers by swapping the base for a small remainder.
1999 to the power 2000 has more than 6000 digits. You can still find its remainder when divided by 5 in your head!
A power is just the same number multiplied again and again. So the product rule works for powers too: swap the base for its remainder. A remainder of 1 or −1 is the best kind, since its powers are so easy.
If , then
This is true since is just and is just , so it follows from the product rule above.
When is divided by 5, what is the remainder?
What mod value is equivalent to ?
Find the remainder of when it's divided by 100.
Start small. What is ?
What is the tens digit of ?
In this section you will be able to combine two or more remainder conditions into one.
Sejal has some marbles. In rows of 5, one is left over. In rows of 7, one is left over again. How many marbles could she have?
Each condition is a sieve: it lets through every 3rd, or every 5th, number. Put two sieves together and the survivors are evenly spaced again. The gap is the LCM of the mods.
We can generally combine different mods together. For example, if and , then .
Find the largest possible number less than 100 that leaves a remainder of 1 when divided by 5 and a remainder of 1 when divided by 7.
Rewrite the conditions as and . Then what is and ?
Find the smallest positive integer that leaves a remainder of 5 when divided by 6, 2 when divided by 5, 2 when divided by 7, and 2 when divided by 11.
Three conditions share the remainder 2. If leaves 2 when divided by 5, 7 and 11, what is a multiple of?
What is the smallest number greater than 2 that leaves a remainder of 2 when divided by 3, 4, 5, or 6?
Find the smallest positive number greater than 1 that leaves a remainder of 1 when divided by 2, by 3, by 4, by 5, and by 6.
The number is a two-digit number.
What is the remainder when is divided by ?
How many positive three-digit integers have a remainder of 2 when divided by 6, a remainder of 5 when divided by 9, and a remainder of 7 when divided by 11?
How many positive integers can fill the blank in the sentence below?
“One positive integer is _____ more than twice another, and the sum of the two numbers is 28.”
In this section you will be able to find the last digit of a huge power by spotting the cycle.
What is the last digit of 2 to the power 1026? Nobody wants to multiply 2 by itself 1026 times. Luckily, the last digits repeat!
Each new last digit depends only on the one before it. So once a last digit shows up again, the whole pattern repeats. Find the cycle length, then divide the big exponent by it and use the remainder.
To calculate large digit(s) of a number , a strategy that may work is to just look for a pattern by computing the first few values of and then seeing that the pattern will repeat for large values of .
Find the units digit of
is a very large power, so try smaller ones. end in . What is the units digit of ?
Find the remainder when
is divided by 7.
What is ? Then what is every ?
What is the units digit of ?
What is the units digit of ?
Find the units digit of
What is the units digit of ?
The Fibonacci sequence starts with two 1s, and each term afterwards is the sum of its two predecessors. Which one of the ten digits is the last to appear in the units position of a number in the Fibonacci sequence?
(A) 0 · (B) 4 · (C) 6 · (D) 7 · (E) 9
In the Fibonacci sequence, how many of the first 100 terms in the sequence leave a remainder of less than 7 when divided by 8?
In this section you will be able to mix the product rule, cycles and combined mods on contest problems.
One more tough one, from the AIME! Pair up the squares, simplify, and only then reduce mod 1000. Every problem has three hints if you get stuck.
Want every problem from this chapter on one page? Open the problem set.
Let , where the additions and subtractions alternate in pairs. Find the remainder when is divided by 1000.