Skip to content

Divisibility Rules

Tool topicTool topic: used inside other questions, rarely asked on its own. One short set here; its practice comes inside the topics that use it.

10 lessons · 49 questions · 39 PYQs · ~60 s per question

The idea

Divisibility questions are rule look-ups plus bookkeeping. Primes 22, 55 (last digit), 33, 99 (digit sum) and 1111 (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

Exam method

  1. JIPMAT 2023 Q25. (5a32465b5a32465b, 8888): 65b65b divisible by 88 gives b=6b=6 at once; then the alternating sum forces a=3a=3; 2a+5b=362a+5b=36.JIPMAT 2023
  2. JIPMAT 2024 Q3. (94a29b694a29b6, 7272): 9b6∈{936,976}9b6\in\{936,976\}, b≠3b\ne3 so b=7b=7; digit sum 37+a=4537+a=45, a=8a=8; answer 3737.JIPMAT 2024
  3. Indore 2019 Q24. digit-sum rule kills 5454 immediately; test 77 on the survivors (453096=63×7192453096=63\times7192).Indore 2019
  4. Indore 2022 Q39. four-digit multiples of 66: 1666−166=15001666-166=1500; remove multiples of 3030: 333−33=300333-33=300; answer 12001200.Indore 2022
  5. Indore 2022 Q21. a letter-string is safe only if it ends in ee and repeats each letter equally; edcbaedcba fails.Indore 2022
  6. JIPMAT 2025. 2122(1+4+16+64+256)=2122×3412^{122}(1+4+16+64+256)=2^{122}\times341, 341=11×31341=11\times31.JIPMAT 2025

Worked examples

Example 1Sitter

For which digit xx is 582x6582x6 divisible by 1111? Alternating sum 6−x+2−8+5=5−x6-x+2-8+5=5-x, so x=5x=5.

Example 2Easy

How many integers from 11 to 300300 are divisible by 44 or 66? 75+50−25=10075+50-25=100 (LCM 1212).

Example 3Easy

1621+92116^{21}+9^{21} is divisible by 16+9=2516+9=25 (odd exponent) but not by 16−9=716-9=7.

Example 4TypicalIndore 2020

A number 11 to 140140

Example 5Typical

If abcdeabcde is divisible by 66, eeeeee, cdbaecdbae and bbadcacedebbadcacede are too; edcbaedcba need not be

Traps

  • Non-co-prime splits; digit-sum rule misapplied to 66; off-by-one at range ends; 'odd multiple' misread; a+b∣an+bna+b\mid a^n+b^n assumed for even nn.

Formulas

Last-digit rules for 2, 4, 8

2∣N  ⟺  last digit even;4∣N  ⟺  4∣last two digits;8∣N  ⟺  8∣last three digits2\mid N \iff \text{last digit even};\quad 4\mid N \iff 4\mid \text{last two digits};\quad 8\mid N \iff 8\mid \text{last three digits}

Powers of 2: the last k digits decide divisibility by 2^k (JIPMAT 2023 Q25 uses 8 on the last three digits).
Digit-sum rules for 3 and 9

3∣N  ⟺  3∣S(N);9∣N  ⟺  9∣S(N)(S=digit sum)3\mid N \iff 3\mid S(N);\quad 9\mid N \iff 9\mid S(N)\quad (S = \text{digit sum})

A number and its digit sum leave the same remainder modulo 9; also the basis of mod-9 remainder questions.
Alternating-sum rule for 11

11∣N  ⟺  11∣(alternating digit sum from the units place)11\mid N \iff 11\mid (\text{alternating digit sum from the units place})

Units minus tens plus hundreds ...; 11 divides the number iff it divides this sum (JIPMAT 2024 Q3 uses 72 = 8 x 9, JIPMAT 2023 Q25 uses 88 = 8 x 11).
Co-prime factor rule for composite divisors

mn∣N  ⟺  m∣N and n∣Nwhen gcd⁡(m,n)=1mn\mid N \iff m\mid N \text{ and } n\mid N\quad\text{when }\gcd(m,n)=1

Split 72, 88, 36, 45, 99, 126 into co-prime parts and test each part; never test 4 and 6 for 24 (not co-prime).
Counting multiples with floors and inclusion-exclusion

#{1≤k≤N:d∣k}=⌊Nd⌋,∣A∪B∪C∣=∑∣A∣−∑∣A∩B∣+∣A∩B∩C∣\#\{1\le k\le N : d\mid k\}=\left\lfloor\frac{N}{d}\right\rfloor,\quad |A\cup B\cup C|=\sum|A|-\sum|A\cap B|+|A\cap B\cap C|

Indore 2019 Q20 (388), 2022 Q39 (1200), 2020 Q21 (38): count multiples of the LCM, subtract overlaps, mind strict bounds.
Divisibility of power sums and differences

a+b∣an+bn (n odd);a−b∣an−bn;a+b∣an−bn (n even)a+b\mid a^{n}+b^{n}\ (n\text{ odd});\quad a-b\mid a^{n}-b^{n};\quad a+b\mid a^{n}-b^{n}\ (n\text{ even})

Factor theorem with a = -b: a^n + b^n vanishes for odd n. JIPMAT 2025: factor out the smallest power of 2 and factor the odd bracket (341 = 11 x 31).
Products of consecutive numbers

n(n+1)(n+2)≡0(mod6);p2−1≡0(mod24) (p>3 prime);k2−1≡0(mod8) (k odd)n(n+1)(n+2)\equiv0\pmod 6;\quad p^{2}-1\equiv0\pmod{24}\ (p>3\text{ prime});\quad k^{2}-1\equiv0\pmod 8\ (k\text{ odd})

Three consecutive integers contain a multiple of 2 and of 3; p - 1 and p + 1 are consecutive evens around an odd prime (JIPMAT 2023 Q18).
Repeating-block numbers

abcabc‾=abc‾×1001=abc‾×7×11×13;111111=3×7×11×13×37\overline{abcabc}=\overline{abc}\times1001=\overline{abc}\times7\times11\times13;\quad 111111=3\times7\times11\times13\times37

abcabc = abc x 1001; 888888 = 8 x 111111 - list the primes before testing the options.

In the exam

Shortcuts
  • 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 [L,H][L,H] as ⌊H/d⌋−⌊(L−1)/d⌋\lfloor H/d\rfloor-\lfloor (L-1)/d\rfloor; 'greater than 10001000' means start at 10011001.
  • Odd multiples of 99 never overlap with multiples of 44 or 66 (they are odd) - add them without inclusion-exclusion (Indore 2019 Q20).
  • To decide whether a letter-string is necessarily divisible by 66: it must end in the letter known to be even and use every letter equally often (Indore 2022 Q21).
  • For an±bna^{n}\pm b^{n} substitute a=∓ba=\mp b: a zero result means the factor a±ba\pm b divides.
  • Check the options, not the theory: for 'which is NOT a divisor of 888888888888' factor once and compare the prime lists.
~60 s per question at exam speed
When to skip: Rarely - every type here is a two-rule check or a floor count. Skip only an inclusion-exclusion over four or more divisors with awkward bounds if it has already taken 90 s.

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
Next sub-topicFactors and Divisors

Practise this free. Every mistake is saved and comes back until you fix it.

Start free