Skip to main content
Mathematics LibreTexts

2.4: Divisibility Tests

  • Page ID
    23446
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    An integer written in base 10:

    • is divisible by 10 precisely when the units digit is 0.

    Because 10 = 2 × 5, it follows that an integer (in base 10):

    • is divisible by 5 precisely when the units digits is 0 or 5 (i.e. a multiple of 5); and
    • is divisible by 2 precisely when the units digit is 0, 2, 4, 6, or 8 (i.e. a multiple of 2).

    Because 100 = 4 × 25, it follows that an integer:

    • is divisible by 4 precisely when the integer formed by its last two digits is a multiple of 4; and
    • is divisible by 25 precisely when its last two digits are 00, 25, 50, or 75 (that is, a multiple of 25).

    Because 1000 = 8 × 125, it follows that an integer:

    • is divisible by 8 precisely when the integer formed by its last three digits is a multiple of 8.

    Hence simple tests for divisibility by 2, by 4, by 5, by 8, and by 10 all follow easily from the way we write numbers in base 10.

    Exercise \(\PageIndex{1}\)

    1. Prove that, when an integer is written in base 10, the remainder when it is divided by 9 is equal to the remainder when its “digit-sum” is divided by 9. Conclude that the remainder when an integer is divided by 3 is equal to the remainder when its “digit-sum” is divided by 3.
    2. Explain why an integer is divisible by 6 precisely when it is divisible both by 2 and by 3.

    Exercise \(\PageIndex{2}\)

    1. What can you say about an integer N which is divisible by three times the sum of its base 10 digits?
    2. Find all integers which are equal to three times the sum of their base 10 digits.
    3. Find the smallest positive multiple of 9 with no odd digits.

    Exercise \(\PageIndex{3}\)

    Prove that an integer written in base 11 is divisible by ten precisely when its digit-sum is divisible by ten.


    This page titled 2.4: Divisibility Tests is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Alexandre Borovik & Tony Gardiner (Open Book Publishers) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.