Sub topic 4
Parity as a Remainder of 2
Assume you know what an integer is, how to divide negative numbers, and what a remainder means. In this chapter, parity means whether an integer is even or odd. The fastest way to identify parity is to divide by 2 and inspect the remainder.
The Remainder Rule
An integer is even if its remainder after division by 2 is 0. An integer is odd if its remainder after division by 2 is 1.
For an integer \(n\):
- \(n\) is even if \(n \bmod 2 = 0\).
- \(n\) is odd if \(n \bmod 2 = 1\).
The symbol \(\bmod\) means “the remainder after division.” The divisor is positive 2, so the possible remainders are only 0 and 1.
| Integer form | Remainder after division by 2 | Parity |
|---|---|---|
| \(n=2k\) | 0 | Even |
| \(n=2k+1\) | 1 | Odd |
Here, \(k\) can be any integer, including 0 or a negative integer.
For example:
- \(18=2(9)\), so 18 is even.
- \(19=2(9)+1\), so 19 is odd.
- \(0=2(0)\), so 0 is even.
- \(-8=2(-4)\), so \(-8\) is even.
- \(-7=2(-4)+1\), so \(-7\) is odd.
A negative integer is not automatically odd or even based on its sign. Its parity depends only on the remainder.
for n in (-5, -4, -1, 0, 1, 2, 7):
print(n, n % 2)The output is:
-5 1
-4 0
-1 1
0 0
1 1
2 0
7 1Why the Algebraic Form Matters
The forms \(2k\) and \(2k+1\) describe every integer exactly once. Every integer has either remainder 0 or remainder 1 when divided by 2.
This gives a useful way to translate a statement:
- “\(n\) is even” means \(n=2k\) for some integer \(k\).
- “\(n\) is odd” means \(n=2k+1\) for some integer \(k\).
For example, if \(x\) is odd, write \(x=2k+1\). If \(y\) is odd, write \(y=2m+1\). This representation lets you prove parity claims without trying particular values.
The remainder view also explains why adding 2 does not change parity:
\[ (n+2)\bmod 2=n\bmod 2. \]
Thus, integers separated by 2 have the same parity. Integers separated by 1 have opposite parity.
A Quick Decision Process
When a GRE problem asks whether an integer is even or odd:
- Confirm that the quantity is an integer.
- Reduce the expression modulo 2.
- Replace any multiple of 2 with 0.
- Use the remaining value, 0 or 1, to classify the result.
For example, consider \(4a+7\), where \(a\) is an integer:
\[ 4a+7=2(2a)+2(3)+1. \]
The expression has the form \(2k+1\), so it is always odd. The value of \(a\) does not matter.
Common Error: Forgetting the Integer Condition
A statement such as “\(x\) is odd” includes an important assumption: \(x\) is an integer. If a problem says only that \(x>0\), then parity rules do not apply. Positive numbers can be integers, decimals, or fractions.
Also remember that zero is even because it has remainder 0 when divided by 2.
Exercise
Is \(6t-3\) even or odd for every integer t? Explain using the remainder form.
Show answer
It is odd. Since \(6t-3=2(3t-2)+1\), it has the form \(2k+1\) for an integer k.