See How Things Work

Dividing integers

Unit
Integers
Part
3. Multiplying & Dividing Integers
Lesson
3.4

For integers, a ÷ b is defined exactly as for whole numbers: it is the integer q with q × b = a, when b ≠ 0 and such an integer exists. This lesson proves that the quotient is unique, derives the sign rules for quotients, shows that division by zero is still undefined, and explains when a quotient of two integers is not an integer.

Division as a missing factor

This lesson relies on division of whole numbers: the definition of a ÷ b by multiplication (Division 1.2), why division by zero is undefined (Division 1.3), and division with remainder (Division 1.4 and 1.5). From this unit it uses the properties of integer multiplication (lesson 3.2, Theorem 4) and the sign rules of lesson 3.3.

Division is the inverse operation of multiplication.⁠[1] Division 1.2 made this the definition of division for whole numbers, and the same definition, read with integers, serves for the integers.

Definition (Quotient of two integers).

Let a and b be integers, with b ≠ 0. If q is an integer such that q × b = a, then q is the quotient of a and b, and one writes a ÷ b = q.

As for whole numbers, a is the dividend and b the divisor.⁠[2] The answer to a division can always be checked by multiplying⁠[3]: the quotient times the divisor must give the dividend. A negative divisor is written in parentheses after the sign ÷, as after the other operation signs in this unit, and a negative dividend is put in parentheses too, as a negative first factor is: (−24) ÷ (−6).

Theorem 1 (the quotient is unique).

Let b be an integer with b ≠ 0. If q × b = a and s × b = a for integers q and s, then q = s.

Proof.

By the distributive property and Theorem 4 (5) of lesson 3.2, (q − s) × b = (q + (−s)) × b = q × b + (−s) × b = q × b + (−(s × b)) = a + (−a) = 0. Since b ≠ 0, Theorem 1 (3) of lesson 3.3 gives q − s = 0, and then q = 0 + s = s (lesson 2.4, Theorem 4).

So the definition names at most one integer. The proof is shorter than the one in Division 1.2, because lesson 3.3 has already shown that two nonzero integers never have the product 0.

Theorem 2 (nothing changes for whole numbers).

Let a and b be whole numbers, b ≠ 0. Then a ÷ b has an integer value exactly when it has a whole-number value in the sense of Division 1.2, and the two values are the same.

Proof.

A whole-number quotient is an integer q with q × b = a, so it is also the integer quotient. Conversely, let q be an integer with q × b = a. If a = 0, then q = 0 by lesson 3.3, Theorem 4 (1). If a ≠ 0, then a and b are both positive, so q is positive by lesson 3.3, Theorem 4 (2), and q is a whole number. In both cases q is the whole-number quotient, and by Theorem 1 there is no other.

Example (A first quotient).

Find (−24) ÷ 6.

  1. By the definition, (−24) ÷ 6 is the integer q with q × 6 = −24.
  2. −24 and 6 have different signs, so by lesson 3.3, Theorem 4, q is negative, and |q| × 6 = 24. Since 4 × 6 = 24, |q| = 4.
  3. So q = −4. Check: (−4) × 6 = −(4 × 6) = −24.

Answer: (−24) ÷ 6 = −4. A debt of 24 dollars shared equally by 6 people is a debt of 4 dollars each.

−300123456−24
Figure. (−24) ÷ 6 = −4, because (−4) × 6 = −24. By the commutative property (lesson 3.2, Theorem 4 (1)), (−4) × 6 = 6 × (−4): six jumps of 4 units to the left from 0, which end at −24. Dividing −24 into 6 equal jumps gives jumps of −4.

Signs of quotients

Theorem 3 (dividing integers).

Let a and b be integers with b ≠ 0.

  1. a ÷ b is an integer exactly when |a| ÷ |b| is a whole number.
  2. In that case |a ÷ b| = |a| ÷ |b|.
  3. If a = 0, then a ÷ b = 0. If a ≠ 0 and a ÷ b is an integer, it is positive when a and b have the same sign, and negative when they have different signs.
Proof.

Suppose q = a ÷ b is an integer, so q × b = a. By lesson 3.3, Theorem 4, q = 0 when a = 0; otherwise |q| × |b| = |a|, and q has the sign stated in (3). In both cases |q| × |b| = |a|, so |a| ÷ |b| = |q| (Division 1.2): it is a whole number, and (2) holds.

Conversely, suppose |a| ÷ |b| = p is a whole number, so p × |b| = |a|. Let q = p if a and b have the same sign or a = 0, and q = −p otherwise. Then q × b = a: for example, if a is negative and b positive, q × b = (−p) × |b| = −(p × |b|) = −|a| = a by Theorem 3 of lesson 3.2; the other three cases are checked in the same way. So a ÷ b is an integer.

So to divide integers, divide their absolute values and attach the sign: when the signs are the same, the quotient is positive, and when the signs are different, the quotient is negative. These are the rules for multiplication, read backward.⁠[4]

a ÷ bdivisor b
positive
divisor b
negative
dividend a
positive
positive12 ÷ 3 = 4negative12 ÷ (−3) = −4
dividend a
negative
negative(−12) ÷ 3 = −4positive(−12) ÷ (−3) = 4
Figure. The sign of a quotient of two nonzero integers, with 12 ÷ 3 = 4 in every choice of signs. Same signs give a positive quotient, different signs a negative one; the absolute value is always 12 ÷ 3 = 4. Each entry is checked by multiplying: for example, (−4) × (−3) = 12.
Example (Four divisions).

Find 42 ÷ 7, 42 ÷ (−7), (−42) ÷ 7 and (−42) ÷ (−7).

  1. In every case the absolute values give 42 ÷ 7 = 6.
  2. 42 ÷ 7: same signs, so 6. Check: 6 × 7 = 42.
  3. 42 ÷ (−7): different signs, so −6. Check: (−6) × (−7) = 42.
  4. (−42) ÷ 7: different signs, so −6. Check: (−6) × 7 = −42.
  5. (−42) ÷ (−7): same signs, so 6. Check: 6 × (−7) = −42.

Answer: 6, −6, −6 and 6.

Corollary .

For all integers a and b with b ≠ 0:

  1. a ÷ 1 = a and a ÷ (−1) = −a;
  2. if a ≠ 0, then a ÷ a = 1 and a ÷ (−a) = −1;
  3. if a ÷ b is an integer, then (−a) ÷ b = a ÷ (−b) = −(a ÷ b) and (−a) ÷ (−b) = a ÷ b;
  4. (a × b) ÷ b = a, and if a ÷ b is an integer, (a ÷ b) × b = a.
Proof.

Each statement is checked by multiplying, and then Theorem 1 says that the quotient is that number. (1) a × 1 = a, so a ÷ 1 = a; and (−a) × (−1) = a × 1 = a (lesson 3.2, Theorem 4 (5)), so a ÷ (−1) = −a. (2) 1 × a = a and (−1) × (−a) = a. (3) Let q = a ÷ b, so q × b = a. By Theorem 4 (5) of lesson 3.2, (−q) × b = −(q × b) = −a, so (−a) ÷ b = −q; (−q) × (−b) = q × b = a, so a ÷ (−b) = −q; and q × (−b) = −(q × b) = −a, so (−a) ÷ (−b) = q. (4) a is an integer whose product with b is a × b, so (a × b) ÷ b = a; and (a ÷ b) × b = a is the definition of a ÷ b.

Example (Dividing by 1 and by −1, and a number by itself).

Find (−9) ÷ 1, (−9) ÷ (−1), (−9) ÷ (−9), 9 ÷ (−9) and 0 ÷ (−9).

  1. (−9) ÷ 1 = −9 and (−9) ÷ (−1) = −(−9) = 9, by the Corollary (1). Check: 9 × (−1) = −9.
  2. (−9) ÷ (−9) = 1, by the Corollary (2). Check: 1 × (−9) = −9.
  3. 9 ÷ (−9) = −1. Check: (−1) × (−9) = 9.
  4. 0 ÷ (−9) = 0, by Theorem 3 (3). Check: 0 × (−9) = 0.

Answer: −9, 9, 1, −1 and 0. Dividing by −1 gives the opposite.

Example (Rates of change).

The temperature falls steadily by 18 degrees in 6 hours. What is the change per hour? At that rate, how many hours does it take to fall 24 degrees?

  1. A fall is a negative change: the total change is −18 degrees. Per hour: (−18) ÷ 6. Different signs, 18 ÷ 6 = 3, so −3 degrees per hour. Check: (−3) × 6 = −18.
  2. A fall of 24 degrees is a change of −24, at −3 per hour: (−24) ÷ (−3). Same signs, 24 ÷ 3 = 8, so 8 hours. Check: 8 × (−3) = −24.

Answer: −3 degrees per hour, and 8 hours. A negative change divided by a negative rate gives a positive number of hours.

Example (A mistake: “a negative divided by a negative stays negative”).

Someone writes (−56) ÷ (−8) = −7. Find the mistake.

  1. Check by multiplying: (−7) × (−8) = 56, not −56. So −7 is not the quotient.
  2. −56 and −8 have the same sign, so the quotient is positive: 56 ÷ 8 = 7, and (−56) ÷ (−8) = 7.
  3. Check: 7 × (−8) = −56.

Answer: (−56) ÷ (−8) = 7. Checking by multiplication catches every sign mistake.

Caution.

In a row of divisions and multiplications, the operations are done from left to right (Order of Operations 1.3). For example, (−48) ÷ 6 ÷ (−2) = (−8) ÷ (−2) = 4. Grouping the other way gives (−48) ÷ (6 ÷ (−2)) = (−48) ÷ (−3) = 16, a different number: division is not associative, for integers as for whole numbers.

Division by zero

Theorem 4.

For every integer a, a ÷ 0 is undefined:

  1. if a ≠ 0, no integer q satisfies q × 0 = a;
  2. if a = 0, every integer q satisfies q × 0 = 0, so no single quotient is determined.
Proof.

For every integer q, q × 0 = 0 (lesson 3.2, Theorem 4 (4)). So q × 0 = a has no solution when a ≠ 0 and every integer as a solution when a = 0. The definition requires b ≠ 0 in any case.

This is the situation of Division 1.3, unchanged by the new numbers: division by zero is undefined.⁠[5] Negative numbers do not help, since a negative number times 0 is still 0.

Example (Three divisions with a zero).

Find, where possible, (−5) ÷ 0, 0 ÷ 0 and 0 ÷ (−5).

  1. (−5) ÷ 0: q × 0 = −5 has no solution, because q × 0 = 0 ≠ −5 for every q. Undefined.
  2. 0 ÷ 0: q × 0 = 0 holds for every q, for example 3 × 0 = 0 and (−7) × 0 = 0. Undefined.
  3. 0 ÷ (−5): the divisor is not 0, and 0 × (−5) = 0, so 0 ÷ (−5) = 0 (Theorem 3 (3)).

Answer: (−5) ÷ 0 and 0 ÷ 0 are undefined; 0 ÷ (−5) = 0.

Historical note.

Brahmagupta’s rules included division by zero. In Colebrooke’s translation, “cipher, divided by cipher, is nought”: he held that 0 ÷ 0 = 0.⁠[6] MacTutor’s biography of Brahmagupta comments that he is certainly wrong there.⁠[7] Theorem 4 shows why: every integer q satisfies q × 0 = 0, so nothing singles out 0 as the quotient. More of his rules are told in Brahmagupta’s rules for negative numbers.

When there is no integer quotient

The definition gives a quotient only when an integer q with q × b = a exists. When one integer is divided by a second nonzero integer, the quotient may or may not be an integer.⁠[8] By Theorem 3 (1) the question is one about whole numbers: a ÷ b is an integer exactly when |a| is a multiple of |b|.

Example (No integer quotient).

Is (−20) ÷ 6 an integer? Is 7 ÷ (−2)?

  1. (−20) ÷ 6: is 20 a multiple of 6? 3 × 6 = 18 and 4 × 6 = 24, and the multiples of 6 grow by 6 at each step, so no. On the integer side: (−4) × 6 = −24 and (−3) × 6 = −18, and −20 lies strictly between them.
  2. 7 ÷ (−2): 3 × 2 = 6 and 4 × 2 = 8, so 7 is not a multiple of 2. No integer q gives q × (−2) = 7.

Answer: neither is an integer. The divisors are not 0, so neither division is undefined; it just has no integer value. Among whole numbers, such divisions were handled with a remainder (Division 1.4).

Looking ahead.

When a ÷ b is an integer, b is said to divide a.⁠[9] Divisibility is the subject of the unit Factors, Multiples & Primes, starting with its lesson Divisibility. A quotient such as (−20) ÷ 6, which is not an integer, is a fraction; fractions are the subject of the unit Fractions, whose lesson Fractions as division reads a fraction as a quotient, and negative fractions come later in that unit (Negative fractions).

Caution.

Division with remainder (Division 1.5) can be extended to a negative dividend, but then a choice must be made. The usual convention of number theory, the division algorithm, keeps the remainder between 0 and the divisor: for an integer a and a positive integer d there are unique integers q and r with 0 ≤ r < d and a = dq + r.⁠[10] So −11 divided by 3 has quotient −4 and remainder 1, since −11 = (−4) × 3 + 1; the remainder is not −2, although −11 = (−3) × 3 + (−2), because the remainder cannot be negative.⁠[11] Other conventions are in use: the remainder operators of some programming languages give a different result when the dividend is negative⁠[12], and some computations use remainders of the least absolute value, which may be negative.⁠[13] A remainder of a negative number therefore always needs its convention. The division algorithm for all integers is proved in the unit Divisibility Theory.

Game

Find the quotient

Round
1
Score
0
Streak
0

What is the quotient? It is the integer q with q × 11 = −13, if there is one.

(−13) ÷ 11 = ?

Exercises

Exercise .

Find, and check by multiplying: (a) 63 ÷ (−9); (b) (−63) ÷ (−9); (c) (−100) ÷ 4; (d) 0 ÷ (−12); (e) (−12) ÷ 0.

▸ Show solution

(a) Different signs, 63 ÷ 9 = 7: −7. Check: (−7) × (−9) = 63. (b) Same signs: 7. Check: 7 × (−9) = −63. (c) Different signs, 100 ÷ 4 = 25: −25. Check: (−25) × 4 = −100. (d) 0, since 0 × (−12) = 0. (e) Undefined: division by 0.

Exercise .

Which of these are integers? Find those that are: (a) (−35) ÷ 7; (b) 35 ÷ (−8); (c) (−1) ÷ (−1); (d) (−50) ÷ (−15).

▸ Show solution

(a) 35 = 5 × 7, so (−35) ÷ 7 = −5. (b) 4 × 8 = 32 and 5 × 8 = 40, so 35 is not a multiple of 8: no integer quotient. (c) (−1) ÷ (−1) = 1. (d) 3 × 15 = 45 and 4 × 15 = 60, so 50 is not a multiple of 15: no integer quotient.

Exercise .

A balance changes by the same amount every day and falls by 84 dollars in 7 days. What is the change per day? How many days does a fall of 60 dollars take at that rate?

▸ Show solution

The total change is −84 dollars over 7 days: (−84) ÷ 7 = −12 dollars per day (different signs; 84 ÷ 7 = 12). Check: (−12) × 7 = −84. At −12 dollars a day, a change of −60 dollars takes (−60) ÷ (−12) = 5 days.

Exercise .

Evaluate (−48) ÷ 6 ÷ (−2) and (−48) ÷ (6 ÷ (−2)).

▸ Show solution

From left to right: (−48) ÷ 6 = −8, and (−8) ÷ (−2) = 4. With the other grouping: 6 ÷ (−2) = −3, and (−48) ÷ (−3) = 16. The two results differ, so the grouping matters, and without parentheses the left-to-right reading, 4, is the value.

Exercise .

Let b ≠ 0, and suppose a ÷ b and c ÷ b are integers. Prove that (a + c) ÷ b is an integer and equals a ÷ b + c ÷ b. Check it for a = −12, c = 30, b = −6.

▸ Show solution

Let q = a ÷ b and s = c ÷ b, so q × b = a and s × b = c. By the distributive property (lesson 3.2, Theorem 4 (3)), (q + s) × b = q × b + s × b = a + c. So q + s is an integer whose product with b is a + c, and by Theorem 1 it is the quotient: (a + c) ÷ b = q + s.

Check: (−12 + 30) ÷ (−6) = 18 ÷ (−6) = −3, and (−12) ÷ (−6) + 30 ÷ (−6) = 2 + (−5) = −3.

Exercise .

For which integers b is 24 ÷ b an integer? How many such b are there?

▸ Show solution

By Theorem 3 (1), 24 ÷ b is an integer exactly when 24 is a multiple of |b|, that is, when |b| is one of 1, 2, 3, 4, 6, 8, 12, 24 (1 × 24 = 2 × 12 = 3 × 8 = 4 × 6 = 24, and 5, 7, 9, 10, 11 and the numbers from 13 to 23 do not give 24). b = 0 is excluded: 24 ÷ 0 is undefined.

So b is one of 1, 2, 3, 4, 6, 8, 12, 24 or their opposites −1, −2, −3, −4, −6, −8, −12, −24: sixteen integers. For example 24 ÷ (−8) = −3.

Summary

  1. For integers a and b with b ≠ 0, a ÷ b is the integer q with q × b = a, when one exists; there is never more than one.
  2. For whole numbers this is the old quotient. To divide integers, divide the absolute values: the quotient is positive when the signs are the same and negative when they differ, and 0 ÷ b = 0.
  3. a ÷ 1 = a, a ÷ (−1) = −a, and every quotient can be checked by multiplying it by the divisor.
  4. Division by zero is still undefined: q × 0 = 0 for every integer q.
  5. a ÷ b is an integer exactly when |a| is a multiple of |b|; otherwise there is no integer quotient. Remainders of negative numbers depend on a convention.

Sources

  1. 1.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 3, “Integers”, section 3.4, “Multiply and Divide Integers” (“Divide Integers”), p. 223 (the whole topic: pp. 223–225).
    “Division is the inverse operation of multiplication.”
    Used for: division is the inverse operation of multiplication, which gives the definition of a ÷ b for integers.
  2. 2.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.1, “Divisibility and Modular Arithmetic” (4.1.3, “The Division Algorithm”), p. 253 (the whole topic: pp. 253–254).
    “In the equality given in the division algorithm, d is called the divisor, a is called the dividend, q is called the quotient”
    Used for: the names dividend, divisor and quotient, used for integers (in the source for the division algorithm).
  3. 3.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 3, “Integers”, section 3.4, “Multiply and Divide Integers” (“Divide Integers”), p. 223 (the whole topic: pp. 223–225).
    “Remember, you can always check the answer to a division problem by multiplying.”
    Used for: the answer to a division can always be checked by multiplying.
  4. 4.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 3, “Integers”, section 3.4, “Multiply and Divide Integers” (“Divide Integers”), p. 223 (the whole topic: pp. 223–225).
    “Division of signed numbers follows the same rules as multiplication. When the signs are the same, the quotient is positive, and when the signs are different, the quotient is negative.”
    Used for: the sign rules for quotients: same signs, a positive quotient; different signs, a negative quotient. These are the rules for multiplication, read backward.
  5. 5.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 7, “The Properties of Real Numbers”, section 7.4, “Properties of Identity, Inverses, and Zero” (“Use the Properties of Zero”), “Division by Zero”, p. 572 (the whole topic: pp. 570–573).
    “Division by zero is undefined.”
    Used for: division by zero is undefined (in the source for all real numbers, which include the integers).
  6. 6.
    H. T. Colebrooke (transl.), Algebra, with Arithmetic and Mensuration, from the Sanscrit of Brahmegupta and Bháscara (John Murray, London, 1817).
    Chapter Brahmegupta, “Cuttacád’hyáya, on Algebra”, chapter XVIII of the Bráhme-sphuta-sidd’hánta, section section II, “Algorithm”, § 35–36, “Rule for division”, p. 339 (the whole topic: pp. 339–340). Read it online.
    “Cipher, divided by cipher, is nought.”
    Used for: in Colebrooke’s translation, Brahmagupta’s rule that zero divided by zero is zero.
  7. 7.
    J. J. O’Connor and E. F. Robertson, “Brahmagupta”, MacTutor History of Mathematics Archive, University of St Andrews (November 2000).
    “He is certainly wrong when he then claims that zero divided by zero is zero.”
    Used for: MacTutor’s biography says that Brahmagupta was certainly wrong in claiming that zero divided by zero is zero.
  8. 8.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.1, “Divisibility and Modular Arithmetic” (4.1.2, “Division”), p. 252 (the whole topic: pp. 252–253).
    “When one integer is divided by a second nonzero integer, the quotient may or may not be an integer.”
    Used for: a quotient of two integers, the divisor not 0, may or may not be an integer.
  9. 9.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.1, “Divisibility and Modular Arithmetic” (4.1.2, “Division”), p. 252 (the whole topic: pp. 252–253).
    “we say that a divides b if there is an integer c such that b = ac”
    Used for: when a ÷ b is an integer (a = (a ÷ b) × b), b is said to divide a (in the source with the letters exchanged).
  10. 10.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.1, “Divisibility and Modular Arithmetic” (4.1.3, “The Division Algorithm”), p. 253 (the whole topic: pp. 253–254).
    “Let a be an integer and d a positive integer. Then there are unique integers q and r, with 0 ≤ r < d, such that a = dq + r.”
    Used for: the division algorithm: for an integer a and a positive integer d, unique q and r with 0 ≤ r < d and a = dq + r.
  11. 11.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.1, “Divisibility and Modular Arithmetic” (4.1.3, “The Division Algorithm”, Example 4), p. 254 (the whole topic: pp. 253–254).
    “Note that the remainder cannot be negative.”
    Used for: −11 divided by 3 has quotient −4 and remainder 1 (−11 = 3(−4) + 1); the remainder is not −2, although −11 = 3(−3) − 2, because the remainder cannot be negative.
  12. 12.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.1, “Divisibility and Modular Arithmetic” (4.1.3, “The Division Algorithm”, Remark after Example 4), p. 254 (the whole topic: pp. 253–254).
    “Be careful when using them, because for a < 0, some of these operators return”
    Used for: the remainder operators of programming languages (mod, %, rem) may give a different result when the dividend is negative; the source goes on to give the formula they use instead.
  13. 13.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 2, “Divisibility Theory in the Integers”, section 2.4, “The Euclidean Algorithm”, p. 28 (the whole topic: pp. 27–28).
    “by working with least absolute remainders in the divisions”
    Used for: some computations use remainders of the least absolute value, which may be negative (the source’s example has 3054 = 19 · 162 − 24).