Note that if a single difference ai-bi is even, the product
will be even. In other words, for
this product to be odd every difference must be odd.
For ai-bi to be odd the pair
must include one even and
one odd integer. If every pair includes one even and one odd integer, then
the number of evens in
must equal the
number of odds in
.
Similarly the number of
odds in
must equal the number of evens in
.
But
.
So the number of evens equals the
number of odds.
So for the product to be odd, we must have an even number of elements! In other words, if n is odd (like n=7) then the product will be even.
If n is even, the product can be odd. Suppose that our set includes as
many evens as odds. For simplicity we focus on the case where the integers
are either 1 of 2. If the first ordering is
while second is
,
the product
will be
Back to the Problem of
the Week Page