Parity , odd and even
The most basic split of whole numbers is into even () and odd (). Tiny as this split seems, it cracks open many puzzles.
Idea
A whole number is even if it can be written as for some integer , and odd if it is one more than an even number, .
Sum rules (try with examples to convince yourself):
- Even Even Even. (e.g., .)
- Odd Odd Even. (e.g., .)
- Even Odd Odd. (e.g., .)
Product rules:
- Even anything Even.
- Odd Odd Odd. (e.g., .)
Why parity is powerful. Many puzzles have a hidden invariant that depends only on parity. If the puzzle says "the sum of items always changes by an even amount in each move", and the start and end have different parities, the puzzle is impossible , regardless of how clever you are.
Quick test. A number is even iff its last digit is . The other digits don't matter. So is even and is odd.
Worked examples
Example 1. Is even or odd?
is odd odd odd. Adding (even) gives odd. So the result is odd. (Indeed .)
Example 2. Show that the sum of two consecutive numbers is always odd.
Consecutive numbers are and , one even, one odd. Even Odd Odd.
Example 3. Find all pairs of two-digit numbers such that and both are odd.
If both are odd, is even , so being even is consistent. Many examples: , , , etc. The constraint of being odd just means both end in .
Example 4. coins lie on a table, all showing heads. In one move you flip exactly two coins. Can you reach the state where all show tails?
Each move flips two coins , the number of heads changes by (if both already same) or by . So heads-count remains even. You start with heads (even) and want heads (even). Parity allows it , and indeed it can be done in moves.
Try it yourself
- Is the sum of an even and an odd number always odd? Justify.
- Is even or odd? Why?
- Find two odd numbers whose sum is .
- Is even or odd?
- Without computing, is even or odd?
- Show: if you add three odd numbers, the sum is always odd.
- A grid has rows and columns. Each cell is or . Can you arrange them so that the product of each row, column equals ?
- The sum . Even or odd? Why?
Activity
Play "heads-tails": coins all heads up. Take turns flipping any two coins. Try to reach all tails. Discuss why you can or cannot.
Pick any consecutive numbers. Add them. Is the sum always divisible by ? Test for a few starts.