DIVISIBILITY & PRIMES
Quick tests for divisibility, prime factorization, and counting divisors.
Overview
Divisibility and primes are the foundation of number theory on the AMC10. A positive integer is divisible by if dividing by leaves remainder zero — equivalently, means for some integer .
Why the AMC10 loves this topic: Many competition problems reduce to asking whether a number has a special form (prime, perfect square, highly composite) or asking you to count divisors or factor an expression. Recognizing 720 as in two seconds is a real skill.
Prime factorization (the Fundamental Theorem of Arithmetic) says every integer greater than 1 can be written uniquely as a product of prime powers: From this one expression you can read off the number of divisors, the sum of divisors, GCD, LCM, and more.
Key facts
- Divisibility by 2: last digit is even.
- Divisibility by 4: last two digits form a number divisible by 4.
- Divisibility by 8: last three digits form a number divisible by 8.
- Divisibility by 3 or 9: digit sum divisible by 3 (or 9). Use when: checking large numbers by hand.
- Divisibility by 5: last digit is 0 or 5.
- Divisibility by 11: alternating digit sum is divisible by 11. Use when: the answer choices hint at a near-11 structure.
- Counting divisors: if then the number of positive divisors is .
- Sum of divisors: Use when: the problem asks for the sum of all divisors.
- Perfect squares: a divisor of is a perfect square iff all its prime exponents are even. Count them as .
- Primality testing: trial-divide by all primes . If none divide , it's prime. The first 10 primes: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29.
- Prime gaps / distribution: primes thin out as numbers grow, but there is no largest prime. Bertrand's postulate: for every there is always a prime with .
Worked example 1
How many positive divisors does have?
Factor: .
Apply the formula: .
You can also list them systematically: multiply each combination of , , — but the formula is faster and less error-prone.
Worked example 2
Find the number of positive integers such that has exactly positive divisors.
requires 's prime-exponent list to satisfy .
factors as or .
- Case : , so . For : only ().
- Case : , so with distinct primes.
Count pairs with :
- : → 8 values
- : → 4 values
- : → 1 value ()
Total: .
Common traps
- Forgetting in exponent counts: The exponents in start at , which corresponds to not including at all. Always add 1.
- Divisibility by 9 vs. 3: digit sum divisible by 3 is not the same as divisible by 9. For 9, the digit sum itself must be divisible by 9.
- Confusing with : counts divisors, sums them. Read the question.
- Overlooking 1 and as divisors: both are always divisors; a prime has exactly 2.
- Assuming a number is prime without checking: always trial-divide up to before declaring primality.