The idea

Divisibility questions are rule look-ups plus bookkeeping. Primes , (last digit), , (digit sum) and (alternating sum) have one-line tests; every composite divisor is handled by splitting it into co-prime parts. Counting how many numbers in a range satisfy a divisibility condition is a floor-division count with inclusion-exclusion for overlaps.
Textbook vs exam method
Textbook method
Apply the rule for each co-prime factor of the divisor to the digit pattern, writing an equation in the unknown digits ( something, even, last three digits a multiple of ). For counts, multiples up to , overlaps through the LCM. For use the factorisations and, for odd , . For products of consecutive integers argue by residues.
Exam method
- JIPMAT 2023 Q25. (, ): divisible by gives at once; then the alternating sum forces ; .JIPMAT 2023
- JIPMAT 2024 Q3. (, ): , so ; digit sum , ; answer .JIPMAT 2024
- Indore 2019 Q24. digit-sum rule kills immediately; test on the survivors ().Indore 2019
- Indore 2022 Q39. four-digit multiples of : ; remove multiples of : ; answer .Indore 2022
- Indore 2022 Q21. a letter-string is safe only if it ends in and repeats each letter equally; fails.Indore 2022
- JIPMAT 2025. , .JIPMAT 2025
Worked examples
For which digit is divisible by ? Alternating sum , so .
How many integers from to are divisible by or ? (LCM ).
is divisible by (odd exponent) but not by .
A number to
not divisible by , or : .
If is divisible by , , and are too; need not be
it ends in .
Traps
- Non-co-prime splits; digit-sum rule misapplied to ; off-by-one at range ends; 'odd multiple' misread; assumed for even .
Formulas
In the exam
- For composite divisors apply the last-digit rule first (it fixes the last unknown digit), then the digit-sum or alternating-sum rule.
- Count multiples in as ; 'greater than ' means start at .
- Odd multiples of never overlap with multiples of or (they are odd) - add them without inclusion-exclusion (Indore 2019 Q20).
- To decide whether a letter-string is necessarily divisible by : it must end in the letter known to be even and use every letter equally often (Indore 2022 Q21).
- For substitute : a zero result means the factor divides.
- Check the options, not the theory: for 'which is NOT a divisor of ' factor once and compare the prime lists.
Before this
What the exams ask here
- find digit(s) making N divisible by 72/88/99 (JIPMAT 2023 Q25, 2024 Q3)
- which two digits appended make 4530.. divisible by 6, 7, 9 (Indore 2019 Q24)
- count integers in a range divisible by a and b but not c / by at least one of a, b (Indore 2019 Q20, 2022 Q39, 2020 Q21)
- a^n + b^n divisible by a + b; 2^122 + 4^62 + ... factor out the smallest power (JIPMAT 2025)
- abcde divisible by 6: which rearrangement is NOT necessarily divisible (Indore 2022 Q21)
- 888888 / abcabc / 10^n - 1 divisibility
- k^2 - 1 divisible by 8 for odd k (JIPMAT 2023 Q18); n(n+1)(2n+1) always divisible by 6