If two integers have opposite parity, then their product is even.
Proof Method: Direct Proof
If two integers have opposite parity, then one is even and the other is odd.
Suppose: $a$ is an even integer and $b$ is an odd integer, then by definition of even and odd integers
$$a = 2m, \quad b = 2n+1,$$ while $m$ and $n$ are integers.
$$ ab = 2m(2n+1)= 4mn+2m = 2(2mn+m) $$ Let $c = 2mn+m$ be an integer, then $ab=2c$ is even
Therefore, the product of two opposite parity integers is even
Thank You!
1
bits in the binary representation of the integer is even or odd. For example, in computing,3
is binary11
with even parity.7
is binary111
with odd parity. And their product,21
, is binary10101
, so it is both odd and has odd parity. – Michael Geary Feb 21 '18 at 07:07Duh
. – Eric Duminil Feb 21 '18 at 09:15