PrevNext

Overview

Number sense is the backbone of contest math. You should be comfortable with divisibility tests, prime factorizations, and the Euclidean algorithm. Many problems reduce to checking a remainder or rewriting a number in prime powers.

Key Ideas

  • If aba \mid b and aca \mid c, then a(bx+cy)a \mid (bx + cy) for any integers x,yx, y.
  • The Euclidean algorithm computes gcd(a,b)\gcd(a, b) quickly by repeated remainders.
  • Working modulo nn lets you replace numbers by their remainders without changing divisibility information.

Worked Example

Find the remainder of 720267^{2026} when divided by 99.

Because 72(mod9)7 \equiv -2 \pmod 9, we have 72026(2)20267^{2026} \equiv (-2)^{2026}. Since 20262026 is even, (2)2026=22026(-2)^{2026} = 2^{2026}. We can use the cycle 21,22,23,242,4,8,7(mod9)2^1, 2^2, 2^3, 2^4 \equiv 2, 4, 8, 7 \pmod 9 with period 66. Compute 202620266337=4(mod6)2026 \equiv 2026 - 6 \cdot 337 = 4 \pmod 6, so the remainder is 2472^4 \equiv 7.

Common Pitfalls

  • Forgetting that congruence only preserves addition and multiplication.
  • Mixing up gcd\gcd and lcm\operatorname{lcm} relationships.

Practice Problems

StatusSourceProblem NameDifficultyTags
AMC 8Easy
Show TagsDivisibility, Remainders
AMC 10Easy
Show TagsGCD, Prime Factorization

Module Progress:

Join the AoPS Community!

Stuck on a problem, or don't understand a module? Join the AoPS community and get help from other math contest students.

PrevNext