Divisibility Rules
Divisible by 3 or 9 when the digit sum is; by 4 when the last two digits form a multiple of ; by 8 when the last three do; by 11 when the alternating digit sum (units tens hundreds ) is a multiple of .
In plain terms. Instead of doing long division, just add or peek at a few digits. It is a shortcut to answer "does this divide evenly?" in one glance.
Example. Is divisible by ? Digit sum , and is a multiple of , so yes.
Every rule works the same way: most of the number is a multiple of the divisor, so only a few digits can affect the remainder. is a multiple of , so sees only the last two digits; is a multiple of , so sees the last three; every power of is one more than a multiple of , so sees the digit sum. To test a composite divisor, split it into factors that share nothing — , — and test each.
Because , every power of ten leaves remainder , so a number and its digit sum leave the same remainder mod (and mod ).
In plain terms. Each "" is just "one more than a nine," so tens, hundreds, and so on don't change the remainder when you divide by — only the digits themselves do.
Example. For : , so its remainder mod is , exactly the digit sum.
The four-digit number is divisible by . What digit is in the box?
Step 1 — the rule: the digit sum must be a multiple of .
Step 2 — the known digits give .
Step 3 — a single digit makes the sum , which is between and ; the only multiple of there is , so . Check: .
What is the largest digit for which is divisible by ?
Step 1 — split ; the factors share nothing, so the number must pass both tests.
Step 2 — the test for looks at the last two digits, : are multiples of and are not, so is even.
Step 3 — the test for : must be a multiple of , so is , or .
Step 4 — both: or , and the largest is . Check: .
For which digit is the five-digit number divisible by ?
Step 1 — the alternating sum from the units digit: .
Step 2 — it must be a multiple of . Since is a digit, lies between and , so it is or .
Step 3 — has no whole-number solution, and gives . Check: . The rule works because is one less than , so the powers of alternate between one more and one less than multiples of .
Combining tests whose divisors share a factor. "Divisible by and by , so divisible by " is false: is divisible by both and not by . The combined test works only for divisors with no common factor — use and for , not and .
The four-digit number (the same digit in both places) is divisible by . Find .
Show the answerHide the answer
. Test for : the last two digits must be a multiple of , so or ( or ). Test for : the digit sum must be a multiple of ; gives , gives . So : .
Primes and Factorization
Write . Then the number of divisors is , and the sum of divisors is .
In plain terms. Break a number into its prime "building blocks." Once you know the blocks, counting or adding up all its factors is just plugging into a formula.
Example. , so it has divisors, and their sum is .
Why the divisor formula works: a divisor of must be built from the same primes with exponents no larger, so it is with chosen from and from — four choices times three choices. Every question about divisors, perfect squares, and common factors becomes a question about exponents, which is why factoring comes first.
To test whether is prime you only need trial divisors up to : if with then .
In plain terms. A factor pair always has one member no bigger than the square root, so you never need to test past — that cuts the work enormously.
Example. To check : , so only test . None divide it, so is prime.
Write as a product of primes and count its divisors.
Step 1 — split into any two factors, , and keep splitting until every end is prime: and .
Step 2 — collect: .
Step 3 — the divisor count is . Starting with or gives a different tree with the same primes at the ends — that is the uniqueness of prime factorization.
What is the smallest positive integer with exactly divisors?
Step 1 — work backwards from the formula: divisors means the product of (exponent ) is , so the exponents are (one prime) or and (two primes).
Step 2 — smallest of each shape: ; and , putting the bigger exponent on the smaller prime ( is larger).
Step 3 — the answer is . Its divisors: .
What is the smallest positive integer for which is a perfect cube?
Step 1 — factor: .
Step 2 — a perfect cube has every exponent a multiple of , so raise each exponent to the next multiple of : needs one , needs one , needs two s.
Step 3 — , and .
Treating as a prime (it is not — it has only one divisor), and trusting that a number "looks prime". and fool people under time pressure; test primes up to the square root before writing "prime".
How many of the positive divisors of are odd?
Show the answerHide the answer
. An odd divisor uses no factor of : it is with and , so there are : .
GCD, LCM, and Units Digits
For positive integers, .
In plain terms. The greatest common divisor and least common multiple always multiply to give the two numbers' product — so knowing one gives the other.
Example. , so .
Why the identity holds: in the prime factorizations, the gcd takes the SMALLER exponent of each prime and the lcm the LARGER. For and the gcd is and the lcm is . For each prime, smaller exponent plus larger exponent equals the two exponents added, so has exactly the primes of .
The last digit of repeats with a period dividing : powers of cycle ; of cycle .
In plain terms. Last digits go in a short repeating loop, so you just find where your exponent lands in the loop instead of computing the whole power.
Example. Last digit of : the cycle for has length , and , so it matches , whose last digit is .
One bell rings every minutes and another every minutes. They ring together at noon. When do they next ring together?
Step 1 — the first bell rings at multiples of minutes after noon, the second at multiples of .
Step 2 — they coincide at common multiples, first at .
Step 3 — . (Using the gcd here is the classic slip: minutes after noon neither bell rings.)
Two positive integers have greatest common divisor and least common multiple . One of them is . What is the other?
Step 1 — the identity: , so .
Step 2 — .
Step 3 — check, because the identity can give a number that fails: and . Both hold.
A floor measures by units. It is to be covered exactly by equal square tiles, as large as possible. How many tiles are needed?
Step 1 — the tile's side must divide both and , and the largest such side is (, ).
Step 2 — the floor holds tiles along one side and along the other.
Step 3 — tiles.
Using product for three numbers. For : gcd , lcm , product — but . The identity is a fact about PAIRS, because only for two numbers do "smaller exponent" and "larger exponent" account for every exponent.
What is the units digit of ?
Show the answerHide the answer
Both cycles have length : and . Since , each power matches the first entry of its cycle: units digits and . Their sum ends in , so the units digit is .
Counting Divisors, and the Last Digit
Factor ; then has divisors, their sum is , and their product is .
The count comes straight from the factorization: each divisor chooses an exponent for each prime independently, from to . So has divisors, and their sum is . A perfect square is exactly a number with an ODD divisor count, because only then is some product odd — that fact alone answers a whole family of contest questions about lockers and lightbulbs.
The units digit of repeats with period dividing : cycles ; cycles ; cycles ; cycle with period ; never change.
To find the units digit of , divide the exponent by the cycle length: , so it matches , units digit . Two traps: an exponent that is a multiple of the cycle length lands on the LAST entry of the cycle, not the first ( ends in , not ); and the cycle is about the units digit only — for the last TWO digits you need to work modulo .
How many divisors does have, and what is the units digit of ?
Step 1 — factor: , so divisors.
Step 2 — the units digit of cycles with period , and exactly, so matches the last entry of the cycle: units digit . Both halves are the same idea — read the answer off the structure instead of computing the number.
How many integers from to have an odd number of positive divisors?
Step 1 — divisors pair up as and , so the count is odd exactly when one divisor is paired with itself, , which means is a perfect square.
Step 2 — the squares up to are .
Step 3 — the answer is . No divisor counting was needed; the pairing did the work.
Because divisors pair up as and , the count is even UNLESS some divisor pairs with itself, i.e. is a perfect square. That is why "which lockers stay open?" has the answer "the perfect-square ones".
How many divisors does have, and what is the units digit of ?
Show the answerHide the answer
gives divisors. For : , so it matches — units digit .
Putting It Together
How many positive integers less than have exactly three positive divisors?
Step 1 — translate with the formula: the product of (exponent ) is , and is prime, so there is one prime with exponent : the number is .
Step 2 — its divisors are , exactly three.
Step 3 — means : , giving . The answer is .
Show that every six-digit number of the form (such as ) is divisible by , and .
Step 1 — write it as a product: .
Step 2 — factor .
Step 3 — so is divisible by all three, whatever the digits. For example . Seeing the structure — "repeat" means "multiply by " — replaces three long divisions.
Divisors, squares, cubes, gcd and lcm: factor into primes first and read the exponents. Divisibility by a small number: a digit rule. Last digit of a power: the cycle. A number with a visible pattern: write the pattern as a product.
What is the smallest positive integer that has exactly positive divisors and is divisible by ?
Show the answerHide the answer
or , so the number is or . It must contain . Options: ; ; ; ; . The smallest is , with divisors .