A whole number is even when that many objects can be set out in pairs with none left over, and odd when one is left over. This lesson defines even and odd numbers through division by 2, proves that every whole number is exactly one of the two and that 0 is even, explains why the last digit decides, and proves the rules for sums, differences and products.
Even and odd numbers
Set out some dots in pairs. Either every dot finds a partner, and the number of dots is called even, or a single dot is left over with no partner, and the number is called odd.[1]
A whole number n is even if 2 | n, that is, if n = k × 2 for some whole number k. It is odd if n = k × 2 + 1 for some whole number k.[3]
In n = k × 2, the k is the number of pairs. By the commutative property of multiplication, k × 2 = 2 × k: two equal groups of k. So an even number of objects can also be split into two equal halves, which is how Euclid defined it: “An even number is that which is divisible into two equal parts.”[5]
The even numbers are the multiples of 2, namely 0, 2, 4, 6, 8, …, and the odd numbers are 1, 3, 5, 7, 9, …. In particular 0 is even, since 0 = 0 × 2: no objects make 0 pairs, with nothing left over.[6]
Decide whether 14, 15, 0 and 1 are even or odd.
- 14 = 7 × 2: 7 pairs, nothing left over. Even.
- 15 = 7 × 2 + 1: 7 pairs and one left over. Odd.
- 0 = 0 × 2. Even.
- 1 = 0 × 2 + 1: no pair, and a single object left over. Odd.
Answer: 14 and 0 are even; 15 and 1 are odd.
Every number is even or odd, never both
Every whole number is either even or odd, and no whole number is both.[7]
Let n be a whole number. By the division algorithm with divisor 2, there is exactly one pair of whole numbers k and r with n = k × 2 + r and 0 ≤ r < 2. So r is 0 or 1.[4] If r = 0, then n = k × 2 is even; if r = 1, then n = k × 2 + 1 is odd.
If n were both, then n = k × 2 + 0 and n = j × 2 + 1 for some whole numbers k and j. Both equations have the form n = (whole number) × 2 + r with r < 2, so by the uniqueness in the division algorithm their remainders would be equal; but 0 ≠ 1. So n is not both.
So “even” means “remainder 0 on division by 2” and “odd” means “remainder 1”. Whether a number is even or odd is called its parity: two numbers have the same parity when both are even or both are odd, and opposite parity when one is even and the other odd.[8]
If n is even, then n + 1 is odd; if n is odd, then n + 1 is even. So the whole numbers alternate: even, odd, even, odd, ….
If n = k × 2, then n + 1 = k × 2 + 1, which is odd. If n = k × 2 + 1, then n + 1 = k × 2 + 2 = (k + 1) × 2 by the rule “one more group” (k × 2 + 2 is k + 1 groups of 2), which is even.
Is 1,000,000 even or odd? And 1,000,001?
- 1,000,000 = 500,000 × 2, since 500,000 + 500,000 = 1,000,000. So 1,000,000 is even.
- 1,000,001 = 500,000 × 2 + 1, the next number after an even number. By the Proposition it is odd.
Answer: 1,000,000 is even and 1,000,001 is odd.
The last digit decides
The ones digit of a number tells whether it is even, however many digits it has.[9]
A whole number is even exactly when its ones digit is 0, 2, 4, 6 or 8, and odd exactly when its ones digit is 1, 3, 5, 7 or 9.
Let T be the number named by the digits of n without its ones digit (0 if n has one digit), and u the ones digit. By the lesson “Dividing by 10, 100 and 1000”, n = T × 10 + u. Since 10 = 5 × 2, the associative property of multiplication gives T × 10 = T × (5 × 2) = (T × 5) × 2.[12]
If u is 0, 2, 4, 6 or 8, then u = j × 2 with j = 0, 1, 2, 3 or 4, and by the distributive property[13] n = (T × 5) × 2 + j × 2 = (T × 5 + j) × 2, which is even. If u is 1, 3, 5, 7 or 9, then u = j × 2 + 1 with j = 0, 1, 2, 3 or 4, and n = (T × 5 + j) × 2 + 1, which is odd. Every digit is in one of the two lists, and no number is both even and odd, so each case holds exactly as stated.
Is 5,236 even or odd? Is 873?
- 5,236 ends in 6, one of 0, 2, 4, 6, 8. So 5,236 is even. Indeed 5,236 = 2,618 × 2.
- 873 ends in 3. So 873 is odd. Indeed 873 = 436 × 2 + 1.
Answer: 5,236 is even and 873 is odd. Check: 2,618 × 2 = 5,236 and 436 × 2 + 1 = 872 + 1 = 873.
Someone says that 4,567 is even because it starts with 4, and that 11 is even because its digits add up to 2. Correct them.
- Only the ones digit decides. 4,567 ends in 7, so it is odd: 4,567 = 2,283 × 2 + 1.
- 11 ends in 1, so it is odd: 11 = 5 × 2 + 1. The sum of its digits plays no role for parity.
Answer: both numbers are odd. The first digit and the digit sum are not tests for 2.
Sums and differences
Even + even is even; odd + odd is even; even + odd and odd + even are odd.
Write the even numbers as k × 2 and j × 2, and the odd numbers as k × 2 + 1 and j × 2 + 1. By the distributive property:
- k × 2 + j × 2 = (k + j) × 2, which is even.
- (k × 2 + 1) + (j × 2 + 1) = (k + j) × 2 + 2 = (k + j + 1) × 2, which is even.
- k × 2 + (j × 2 + 1) = (k + j) × 2 + 1, which is odd; the order of the addends does not matter.
These rules are standard,[14]
A sum of whole numbers is odd exactly when an odd number of its addends are odd.
Add the addends one at a time, starting from 0, which is even. By the Theorem, adding an even number keeps the parity of the running total, and adding an odd number switches it. So the parity switches once for each odd addend, and the final sum is odd exactly when the number of switches is odd.
For whole numbers m ≥ n, the difference m − n has the same parity as m + n: even − even and odd − odd are even; even − odd and odd − even are odd.
Let d = m − n. By the lesson “Subtraction as the inverse of addition”, m = d + n. If n is even, adding n keeps parity, so d has the same parity as m, and so does m + n. If n is odd, adding n switches parity, so d has the opposite parity to m, and so does m + n. In both cases d and m + n have the same parity.
Find the parity of 4,817 + 2,365, of 9,000 − 2,347 and of 13 + 25 + 38 + 41.
- 4,817 ends in 7 and 2,365 in 5: odd + odd is even. Check: 4,817 + 2,365 = 7,182, which ends in 2.
- 9,000 is even and 2,347 is odd: even − odd is odd. Check: 9,000 − 2,347 = 6,653, which ends in 3.
- 13, 25 and 41 are odd and 38 is even: three odd addends, an odd number, so the sum is odd. Check: 13 + 25 + 38 + 41 = 117.
Answer: even, odd, odd.
Products
If at least one factor is even, the product is even. Odd × odd is odd. So a product is odd exactly when every factor is odd.
Let one factor be even, k × 2, and the other any whole number m. By the commutative and associative properties, m × (k × 2) = (m × k) × 2 and (k × 2) × m = (k × m) × 2, which are even. (This is also the rule on multiples of the lesson “Divisibility”, with a = 2.)
Now let both factors be odd, k × 2 + 1 and j × 2 + 1. By the distributive property, (k × 2 + 1) × (j × 2 + 1) = (k × 2 + 1) × (j × 2) + (k × 2 + 1) × 1. The first part is a multiple of 2, so it is even; the second part is k × 2 + 1, which is odd. Even + odd is odd, so the product is odd.
For more than two factors, multiply one factor at a time: an even factor makes the running product even, and it stays even after that; if every factor is odd, every running product is odd.
The rule for two odd numbers is a standard exercise in proof,[16] and Euclid’s Elements already proves that odd × even is even and odd × odd is odd.[17]
Find the parity of 37 × 59, of 37 × 58 and of 3 × 5 × 7 × 2.
- 37 and 59 are both odd, so 37 × 59 is odd. Check: 37 × 59 = 2,183.
- 58 is even, so 37 × 58 is even. Check: 37 × 58 = 2,146.
- The factor 2 is even, so 3 × 5 × 7 × 2 is even. Check: 3 × 5 × 7 × 2 = 210.
Answer: odd, even, even.
Someone says that 17 × 23 + 1 is odd, “because 17 and 23 are odd”. Find the error.
- 17 × 23 is odd × odd, which is odd.
- Then 17 × 23 + 1 is odd + odd, which is even.
- Check: 17 × 23 = 391, and 391 + 1 = 392, which ends in 2.
Answer: 17 × 23 + 1 is even. Every operation in the expression has to be followed, not only the first.
Even or odd?
- Round
- 1
- Score
- 0
- Streak
- 0
Without computing it, is 9,772 + 5,263 even or odd? First tap each number to mark it even or odd.
Euclid’s Elements defines an odd number as “that which is not divisible into two equal parts, or that which differs by a unit from an even number”,[19] and Book IX proves rules for sums and products of even and odd numbers, beginning with “If as many even numbers as we please are added together, then the sum is even.”[20]
The test by the last digit is the first of the divisibility tests of the lesson “Divisibility rules and why they work”, which proves similar tests for 3, 4, 5, 9, 10 and other numbers.
Exercises
Decide whether each number is even or odd, and write it as k × 2 or k × 2 + 1: 0, 1, 58, 1,003, 20,470.
▸ Show solution
- 0 = 0 × 2: even.
- 1 = 0 × 2 + 1: odd.
- 58 ends in 8: even (58 = 29 × 2).
- 1,003 ends in 3: odd (1,003 = 501 × 2 + 1).
- 20,470 ends in 0: even (20,470 = 10,235 × 2).
Without adding, decide whether 345 + 678 + 901 is even or odd. Then check.
▸ Show solution
345 is odd, 678 even, 901 odd: two odd addends, an even number of them, so the sum is even. Check: 345 + 678 + 901 = 1,924.
Is 12,345 × 6,789 + 1 even or odd? Do not compute the product.
▸ Show solution
12,345 and 6,789 are both odd, so their product is odd. Adding 1, which is odd, gives odd + odd, which is even. So 12,345 × 6,789 + 1 is even.
Can five odd numbers add up to 100? Explain.
▸ Show solution
Each of the five numbers is odd, so the sum has five odd addends, an odd number of them. By the Corollary the sum is odd. But 100 is even, and no number is both even and odd. So it is impossible.
Prove that the sum of two consecutive whole numbers is always odd, and that their product n × (n + 1) is always even.
▸ Show solution
Of the two consecutive numbers n and n + 1, one is even and the other odd, by the Proposition on neighbors. Their sum is even + odd or odd + even, which is odd. Their product has an even factor, so it is even.
Prove that if n × n is even, then n is even.
▸ Show solution
Suppose n were odd. Then n × n would be odd × odd, which is odd, and so not even, since no number is both. That contradicts the assumption that n × n is even. So n is even.
Summary
- n is even when n = k × 2 (n objects make k pairs) and odd when n = k × 2 + 1 (one object is left over). 0 is even.
- By the division algorithm with divisor 2, every whole number is even or odd, never both; the numbers alternate even, odd, even, ….
- A number is even exactly when its ones digit is 0, 2, 4, 6 or 8, because every multiple of 10 is even.
- Even ± even and odd ± odd are even; even ± odd is odd. A sum is odd exactly when it has an odd number of odd addends.
- A product is odd exactly when every factor is odd; one even factor makes it even.
Sources
- 1.Michelle Manes, “Even Numbers”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).Section “Definition”. pressbooks.oer.hawaii.edu/mathforelementaryteachers/chapter/even-numbers · open at the quoted passage.
“Some number of dots is even if I can divide the dots into pairs, and every dot has a partner.”
Used for: a number of objects is even when they can all be set out in pairs. - 2.Michelle Manes, “Even Numbers”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).Section “Definition”. pressbooks.oer.hawaii.edu/mathforelementaryteachers/chapter/even-numbers · open at the quoted passage.
“Some number of dots is odd if, when I try to pair up the dots, I always have a single dot left over with no partner.”
Used for: a number of objects is odd when pairing them up leaves a single object with no partner. - 3.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.7, “Introduction to Proofs” (1.7.5, “Direct Proofs”), Definition 1, p. 86 (the whole topic: pp. 86–87).
“The integer n is even if there exists an integer k such that n = 2k, and n is odd if there exists an integer k such that n = 2k + 1.”
Used for: the definition of even (n = k × 2) and odd (n = k × 2 + 1); the source states it for integers, which include the whole numbers. - 4.David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).Chapter 2, “Divisibility Theory in the Integers”, section 2.2, “The Division Algorithm”, p. 18 (the whole topic: pp. 17–18).
“As a first illustration, note that with b = 2 the possible remainders are r = 0 and r = 1. When r = 0, the integer a has the form a = 2q and is called even; when r = 1, the integer a has the form a = 2q + 1 and is called odd.”
Used for: the definition of even and odd by the remainder on division by 2, which is 0 or 1. - 5.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book VII”, Clark University.Section “Definitions”. mathcs.clarku.edu/~djoyce/java/elements/bookVII/bookVII.html · open at the quoted passage.
“An even number is that which is divisible into two equal parts.”
Used for: Euclid’s definition of an even number (Book VII, Definition 6). - 6.Michael Sipser, Introduction to the Theory of Computation (3rd ed., Cengage Learning, 2013).Chapter 1, “Regular Languages”, section 1.1, “Finite Automata” (“Designing Finite Automata”), p. 42 (the whole topic: pp. 41–43).
“because 0 is an even number”
Used for: 0 is even. - 7.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.7, “Introduction to Proofs” (1.7.5, “Direct Proofs”), Definition 1, p. 86 (the whole topic: pp. 86–87).
“Note that every integer is either even or odd, and no integer is both even and odd.”
Used for: every whole number is either even or odd, and none is both. - 8.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.7, “Introduction to Proofs” (1.7.5, “Direct Proofs”), Definition 1, p. 86 (the whole topic: pp. 86–87).
“Two integers have the same parity when both are even or both are odd; they have opposite parity when one is even and the other is odd.”
Used for: the term parity: same parity and opposite parity. - 9.David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).Chapter 4, “The Theory of Congruences”, section 4.3, “Binary and Decimal Representations of Integers”, Problem 7(a), p. 74 (the whole topic: pp. 71–74).
“An integer is divisible by 2 if and only if its units digit is 0, 2, 4, 6, or 8.”
Used for: a number is even exactly when its ones (units) digit is 0, 2, 4, 6 or 8. - 10.Michelle Manes, “Even Numbers”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).Section “Even Numbers”. pressbooks.oer.hawaii.edu/mathforelementaryteachers/chapter/even-numbers · open at the quoted passage.
“Even plus even is even, and even plus odd is odd, so your whole number is even when the ones digit is even, and it’s odd when the ones digit is odd.”
Used for: a whole number is even when its ones digit is even and odd when its ones digit is odd. - 11.Michelle Manes, “Even Numbers”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).Section “Even Numbers”. pressbooks.oer.hawaii.edu/mathforelementaryteachers/chapter/even-numbers · open at the quoted passage.
“Every multiple of ten is an even number”
Used for: every multiple of ten is even, which is the reason the last digit decides. - 12.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.2, “Commutative and Associative Properties” (“Use the Commutative and Associative Properties”), p. 548 (the whole topic: pp. 546–549).
“When multiplying three numbers, changing the grouping of the numbers does not change the result. This is known as the Associative Property of Multiplication.”
Used for: the associative property of multiplication: T × (5 × 2) = (T × 5) × 2. - 13.Michelle Manes, “Properties of Operations”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).Section “Multiplication Distributes over Addition”. pressbooks.oer.hawaii.edu/mathforelementaryteachers/chapter/properties-of-operations · open at the quoted passage.
“Multiplication distributes over addition.”
Used for: the distributive property of multiplication over addition, used in the proofs of this lesson. - 14.Michelle Manes, “Even Numbers”, Mathematics for Elementary Teachers, University of Hawaiʻi (Pressbooks) (2018).Section “Even Numbers”. pressbooks.oer.hawaii.edu/mathforelementaryteachers/chapter/even-numbers · open at the quoted passage.
“Even plus even is even, and even plus odd is odd”
Used for: even + even is even and even + odd is odd. - 15.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.7, “Introduction to Proofs”, Exercises 1–2, p. 95 (the whole topic: pp. 86–95).
“1. Use a direct proof to show that the sum of two odd integers is even. 2. Use a direct proof to show that the sum of two even integers is even.”
Used for: odd + odd is even and even + even is even. - 16.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.7, “Introduction to Proofs”, Exercise 6, p. 95 (the whole topic: pp. 86–95).
“Use a direct proof to show that the product of two odd numbers is odd.”
Used for: odd × odd is odd. - 17.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book IX”, Clark University.Section “Propositions”. mathcs.clarku.edu/~djoyce/java/elements/bookIX/bookIX.html · open at the quoted passage.
“If an odd number is multiplied by an even number, then the product is even.”
Used for: Euclid, Elements IX.28: odd × even is even. - 18.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book IX”, Clark University.Section “Propositions”. mathcs.clarku.edu/~djoyce/java/elements/bookIX/bookIX.html · open at the quoted passage.
“If an odd number is multiplied by an odd number, then the product is odd.”
Used for: Euclid, Elements IX.29: odd × odd is odd. - 19.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book VII”, Clark University.Section “Definitions”. mathcs.clarku.edu/~djoyce/java/elements/bookVII/bookVII.html · open at the quoted passage.
“An odd number is that which is not divisible into two equal parts, or that which differs by a unit from an even number.”
Used for: Euclid’s definition of an odd number (Book VII, Definition 7). - 20.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book IX”, Clark University.Section “Propositions”. mathcs.clarku.edu/~djoyce/java/elements/bookIX/bookIX.html · open at the quoted passage.
“If as many even numbers as we please are added together, then the sum is even.”
Used for: Euclid, Elements IX.21, the first of Book IX’s propositions on even and odd numbers (IX.21–29).