Lably
Skip to content

Parity (mathematics)

Property of being an even or odd number

  • 8 min read
  • 5 chapters
  • 1 lab on Lably

Learn it on Lably

The above definition of parity applies only to integer numbers, hence it cannot be applied to numbers with fractions or decimals such as 1⁄2 or 7.2742. See § Higher mathematics for some extensions of the notion of parity to a larger class of "numbers" or in other more general settings.

Even and odd numbers have opposite parities, for example 22 (an even number) and 13 (an odd number). In particular, the parity of zero is even. Any two consecutive integers have opposite parity. An integer expressed in the decimal numeral system is even or odd according to whether its last digit is even or odd. That is, if the last digit is 1, 3, 5, 7, or 9, then it is odd; otherwise it is even—as the last digit of any even number is 0, 2, 4, 6, or 8.

This concept applies to any even base system: any integer expressed in the binary numeral system is odd if its last digit is 1; and it is even if its last digit is 0. In an odd base, the number is even if and only if the sum of its digits is even; for example, in base seven, 11 (equivalent to 8 in base ten) is even (because Σ=2) and 124 (equivalent to 67 in base ten) is odd (because Σ=7).

Definition

An even number is an integer of the form x=2k where k is an integer; an odd number is an integer of the form x=2k+1.

An equivalent definition is that an even number is divisible by 2: 2|x and an odd number is not: 2⧸|x

The sets of even and odd numbers can be defined as following: {2k:k∈Z} {2k+1:k∈Z}

The set of even numbers is a prime ideal of Z and the quotient ring Z/2Z is the field with two elements. Parity can then be defined as the unique ring homomorphism from Z to Z/2Z where odd numbers are 1 and even numbers are 0. The consequences of this homomorphism are covered below.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Basics