Recurrences and arithmetic · Definition

Divisibility

discrete mathematicsnumber theory

It is the most elementary relation between integers and the starting point of number theory: it decides when a division comes out exact.

Definition

An integer \(a\neq0\) divides an integer \(b\), written \(a\mid b\), when \(b\) is an integer multiple of \(a\).

\[a\mid b\iff b=ak\ \text{for some } k\in\mathbb{Z}\]

Saying \(a\mid b\) is the same as saying there is an integer \(k\) with \(b=ak\); no division or decimal result is involved. Thus \(3\mid 12\) (with \(k=4\)) and \(5\nmid 12\). Every integer divides 0, because \(0=a\cdot0\), and 1 and \(-1\) divide everything; zero, however, divides nothing but itself, which is why \(a\neq0\) is required.

The basic properties follow directly from the definition. The relation is reflexive (\(a\mid a\)) and transitive (if \(a\mid b\) and \(b\mid c\), then \(a\mid c\)), but not symmetric: \(2\mid 6\) and \(6\nmid 2\). If \(a\) divides \(b\) and \(c\), it divides every combination \(mb+nc\); this observation underlies the Euclidean algorithm.

When \(a\nmid b\), division with remainder still makes sense: there are unique integers \(q\) and \(r\) with \(b=aq+r\) and \(0\le r<a\), and \(a\mid b\) is equivalent to \(r=0\). A common mistake is to think that \(a\mid bc\) forces \(a\mid b\) or \(a\mid c\): \(4\mid 2\cdot2\), yet 4 does not divide 2. That implication is valid only when \(a\) is prime.

Divisibility leads to the greatest common divisor, to prime numbers and to modular arithmetic, where \(n\mid a-b\) reads as «\(a\) and \(b\) are congruent modulo \(n\)».

Think about it

Prove that if \(a\mid b\) and \(a\mid c\), then \(a\mid (b-c)\).

Let \(b=ak\) and \(c=aj\). Then \(b-c=a(k-j)\), an integer multiple of \(a\).

Which integers \(a\) satisfy \(a\mid 1\)?

Only \(a=1\) and \(a=-1\), since \(1=ak\) forces \(a\) and \(k\) to be integer inverses.

Exercises 10

References

  • Kenneth H. Rosen, Discrete Mathematics and Its Applications, 8th edition, McGraw-Hill, 2019. §4.1
  • Ralph P. Grimaldi, Discrete and Combinatorial Mathematics: An Applied Introduction, 5th edition, Pearson, 2003. §4.3
  • Susanna S. Epp, Discrete Mathematics with Applications, 5th edition, Cengage, 2019. §4.3