Cookie policy · You can change your choice at any time on the page „Cookies“.

Accessibility

Text size
Read aloud

Your browser reads the text with the voice it has for this language.

Accessibility statement

Secondary school › Numbers

Congruences

Modular arithmetic, remainders of powers, last digits and Fermat's little theorem. 6 problems with step-by-step solutions.

Solve each problem in your notebook first, then open the solution.

Problem 1 Congruences

a) Find all m>1 with 29≡5(modm).

b) Today is Monday. What day will it be in 100 days?

c) Calculate in clock (mod 12) arithmetic: 9+7, 5−9, 4⋅7.

Show solution

a) m divides 29−5=24: m∈{2,3,4,6,8,12,24}.

b) 100=14⋅7+2: two days after Monday is Wednesday.

c) 16≡4; −4≡8; 28≡4.

Problem 2 Remainders of powers

a) Find the remainder when 1740 is divided by 8.

b) Find the remainder when 3100 is divided by 7.

c) Find the remainder when 523+415 is divided by 9.

Show solution

a) 17≡1(mod8), so 1740≡1.

b) 36≡1(mod7), 100=6⋅16+4: 34=81≡4.

c) 56≡1(mod9) and 523=518⋅55≡55=3125≡2. 43=64≡1, so 415≡1. Sum: 3.

Problem 3 Last digit

Find the last digit of a) 72025   b) 1348   c) 22026+32026.

Show solution

The last digit is the remainder mod 10.

a) Last digits of 7n repeat 7, 9, 3, 1 (period 4). 2025≡1(mod4): 7.

b) 3n: 3, 9, 7, 1. 48≡0: 1.

c) 2026≡2(mod4): 2n ends in 4, 3n ends in 9. 4+9=13: 3.

Problem 4 Solving congruences

a) Solve x+4≡1(mod6).

b) Find the smallest two-digit number with 3x−2≡4(mod9).

c) Prove that 10n−1 is divisible by 9 for all n∈N.

Show solution

a) x≡−3≡3(mod6): x=6k+3.

b) 3x≡6(mod9) means 9∣3(x−2), i.e. x≡2(mod3). The smallest two-digit: 11.

c) 10≡1(mod9), so 10n≡1 and 10n−1≡0.

Problem 5 Fermat's little theorem

If p is prime and p∤a, then ap−1≡1(modp).

a) Find the remainder when 650 is divided by 11.

b) Find the remainder when 240 is divided by 13.

c) Show that 530−1 is divisible by 31.

Show solution

a) 610≡1(mod11), so 650≡1.

b) 212≡1(mod13), 40=36+4: 24=16≡3.

c) 31 is prime and does not divide 5: 530≡1(mod31).

Problem 6 Sum of powers

Find the remainder when 15+25+⋯+105 is divided by 11.

Show solution

Mod 11, 11−k≡−k, and the fifth power is odd: (11−k)5≡−k5. Pair 1 with 10, 2 with 9, …, 5 with 6: each pair gives 0. Remainder 0.

← Real numbers and absolute valueExponents →