Divisibility has not yet appeared as a separate item among the TR-YÖS items ÖSYM published, but by our estimate the first 10 TMT items form the «numbers and operations» block, and one such item may appear there. Divisibility also helps in Numerical Ability: in code tables the hidden rule is often a property such as «is the number divisible by 3?». Learn it once, use it in both tests.
The full theory is in Mathematics, in the lessons «Divisibility rules, prime and composite numbers» and «Greatest common divisor and least common multiple». Here we cover why the rules work, unknown-digit items and the number of divisors at exam speed.
Divisibility rules and why they work
10 is divisible by 2 and 5, 100 by 4 and 25, 1000 by 8 and 125. That is why divisibility by 2, 4, 5, 8 and 10 depends only on the last one, two or three digits: the rest of the number is divisible anyway. For 3, 9 and 11 all the digits take part — the table collects every rule.
| Divisor | Rule | Example |
|---|---|---|
| 2 | the last digit is even | 3574 |
| 3 | the digit sum is divisible by 3 | 7425: 18 |
| 4 | the number formed by the last two digits is divisible by 4 | 3716: 16 |
| 5 | the last digit is 0 or 5 | 7425 |
| 6 | divisible by both 2 and 3 | 3570 |
| 8 | the number formed by the last three digits is divisible by 8 | 5112: 112 |
| 9 | the digit sum is divisible by 9 | 7425: 18 |
| 10 | the last digit is 0 | 3570 |
| 11 | the alternating sum «+ − + −» from the right is divisible by 11 | 7425: 5 − 2 + 4 − 7 = 0 |
Why do the rules for 3 and 9 look at the digit sum? Because 10 = 9 + 1, 100 = 99 + 1, 1000 = 999 + 1. Split a number by place value and you get a big part divisible by 9 plus the sum of the digits. Look at 7425 in the picture. The same idea works for 11: 10 = 11 − 1, 100 = 99 + 1, 1000 = 1001 − 1, so the signs alternate.
Where
- abcd
- a four-digit number with digits a, b, c, d
the first bracket is divisible by 9: the remainder of the number mod 9 (and mod 3) equals that of its digit sum
Example 1: check the rules
Problem
1) Which of 3, 4, 5, 9, 11 divide 7425?
2) Is 5112 divisible by 8 and by 9?
3) What are the remainders of 5678 when divided by 9, by 4 and by 5?
Show solutionHide solution
Solution
2) 112 = 8 · 14 ⇒ 8 ✓; 5 + 1 + 1 + 2 = 9 ⇒ 9 ✓.
3) By 9: digit sum 26 = 18 + 8 ⇒ remainder 8. By 4: last two digits 78 = 76 + 2 ⇒ 2. By 5: last digit 8 = 5 + 3 ⇒ 3.
Unknown digits
In items like «4a7b is divisible by 15», split the divisor into coprime factors: 15 = 3 · 5, 36 = 4 · 9, 45 = 5 · 9, 72 = 8 · 9, 12 = 3 · 4. Use the rule that fixes the last digit first (2, 4, 5, 8, 10), then the digit sum (3, 9). At each step remember that a and b are digits from 0 to 9, and the first digit cannot be 0.
Example 2: 4a7b divisible by 15
Problem
The four-digit number 4a7b is divisible by 15. How many such numbers are there?
Show solutionHide solution
Solution
2) b = 0: 4 + a + 7 = 11 + a must be divisible by 3 ⇒ a = 1, 4, 7.
3) b = 5: 16 + a must be divisible by 3 ⇒ a = 2, 5, 8.
4) 6 numbers in all: 4170, 4470, 4770, 4275, 4575, 4875.
Example 3: 3a5b divisible by 36
Problem
The four-digit number 3a5b is divisible by 36 ⇒ a + b = ?
Show solutionHide solution
Solution
2) By 4, 5b must be divisible by 4: 52 and 56 ⇒ b = 2 or 6.
3) By 9, 3 + a + 5 + b = 8 + a + b must be divisible by 9.
b = 2: 10 + a ⇒ a = 8 (3852). b = 6: 14 + a ⇒ a = 4 (3456).
4) In both cases a + b = 10. Check: 3852 = 36 · 107, 3456 = 36 · 96 ✓.
Primes and prime factorisation
A prime is a number with exactly two divisors: 1 and itself. 1 is not prime (it has one divisor), and 2 is the only even prime. The primes up to 50: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47. Every natural number greater than 1 is a product of primes, and this factorisation is unique (apart from the order).
To test whether n is prime, it is enough to divide by the primes up to √n. Reason: if n = p · q, one of the factors is not larger than √n. For 221, √221 < 15: try 2, 3, 5, 7, 11, 13 — and 221 = 13 · 17.
Example 4: factorise and test
Problem
1) Factorise 504 into primes.
2) Is 221 prime?
3) Is 97 prime?
Show solutionHide solution
Solution
2) √221 < 15; it divides by 13: 221 = 13 · 17 ⇒ not prime.
3) √97 < 10; not divisible by 2, 3, 5, 7 ⇒ prime.
The number of divisors
72 = 2³ · 3². Every divisor of 72 has the form 2ⁱ · 3ʲ: the power of 2 is 0, 1, 2 or 3 (4 choices), the power of 3 is 0, 1 or 2 (3 choices). Each pair of choices gives one divisor, so there are 4 · 3 = 12 divisors. The table in the picture shows all twelve. That is why the formula adds 1 to each exponent: «0» is a choice too.
Where
- p, q, r
- the different prime factors of n
- a, b, c
- their exponents
the number of positive divisors: add 1 to every exponent and multiply; integer divisors are twice as many
Example 5: count the divisors
Problem
1) How many positive divisors does 360 have?
2) And 100?
3) n = 2ᵃ · 3² has 15 positive divisors ⇒ a = ?
4) How many integer divisors does 12 have?
Show solutionHide solution
Solution
2) 100 = 2² · 5² ⇒ 3 · 3 = 9.
3) (a + 1) · 3 = 15 ⇒ a = 4.
4) 12 = 2² · 3 ⇒ 3 · 2 = 6 positive, so with the negatives 12.
Split the divisor
Split a composite divisor into coprime factors: 36 = 4 · 9, 72 = 8 · 9.
Start with the last digits
The rules for 2, 4, 5, 8, 10 leave only a few choices for the last digit.
Then the digit sum
For each case write the rule for 3 or 9 and pick the digits from 0–9 that fit.
Check what is asked
The count of numbers? The sum of the a values? The largest a + b? List all cases and compute only what is asked.
Practice task (TR-YÖS style)
Problem
The four-digit number 6a2b is divisible by 45. What is the sum of all possible values of a?
A) 5 B) 6 C) 9 D) 10 E) 14
Show solutionHide solution
Solution
2) b = 0: 6 + a + 2 + 0 = 8 + a = 9 ⇒ a = 1 (6120).
3) b = 5: 13 + a = 18 ⇒ a = 5 (6525).
4) The sum of the a values: 1 + 5 = 6. Answer: B) 6.
Check: 6120 = 45 · 136, 6525 = 45 · 145 ✓.
Remember
- 2, 4, 5, 8, 10 — look at the last 1–3 digits; 3 and 9 — the digit sum; 11 — the alternating sum from the right.
- The remainder mod 9 (and mod 3) equals that of the digit sum, because 10 = 9 + 1.
- Split a composite divisor into coprime factors: 36 = 4 · 9, 24 = 3 · 8 (not 4 · 6).
- 1 is not prime, 2 is the only even prime; test primality up to √n.
- n = pᵃ · qᵇ ⇒ (a + 1)(b + 1) positive divisors; integer divisors are twice as many.