Simulate
Check the claim with numbers
Add two odd numbers and the answer seems to be even every time: , and . Multiply them and the answer seems to be odd: and . The cell tests both claims on every pair of odd numbers from to .
There are 50 odd numbers in the range and 2,500 pairs. Not one pair has an odd sum, and not one has an even product. Here is a bolder guess: the sum of two odd numbers is always 2 more than a multiple of 4, as in .
The bolder guess fails for 1,250 pairs, such as 1 and 3, whose sum is 4. It never fails when the two numbers are equal. Keep that in mind: one of the proofs below "proves" this false guess.
Conjecture
For all odd integers and , the sum is even and the product is odd.
Every one of 2,500 pairs agrees. That is evidence, not a proof: there are infinitely many odd numbers, and the claim is about all of them.
Definitions, then a direct proof
A proof about even and odd numbers cannot rest on examples. It needs definitions, so that "even" becomes something algebra can work with. Here is the set of integers, as in lesson 0.2.1.
Rule: Even and odd
So is even and is odd. Every integer is even or odd, because dividing by 2 leaves a remainder of 0 or 1.
No integer is both. If for integers and , then , which is not an integer.
Try it
Python's divmod(n, 2) gives the and the remainder at once. The remainder is 0 for an even and 1 for an odd one.
Negative numbers work too: .
A direct proof of "if , then " assumes and works forwards to . With definitions it has three moves: unpack the hypothesis into algebra, rearrange, then pack the result into the form the conclusion's definition asks for.
Format 1
Reorder the steps
Here is a direct proof that the sum of two odd integers is even, with its lines shuffled. Put them in order.
- The number is an integer, because sums of integers are integers.
- Take out the factor 2: .
- So is 2 times an integer, which is the definition of even.
- Let and be odd integers.
- By the definition of odd, and for some integers and .
- Add them: .
Format 2
Fill the gap
Now the product. Fill each gap as you would a quick answer, such as 2a+b, then check.
Let and be odd, so and for some integers and . Multiplying out the brackets, .
The first three terms share a factor 2, so with . Sums and products of integers are integers, so is an integer, and is odd by definition.
For example, and have and , so . Indeed .
How to type answers
- Powers with
^, brackets round a power that is a sum:r^k,r^(k+1). - Fractions with
/and brackets:(1-r)/(1+r). Multiply with*or side by side:2k+1. - Press Enter in any box to check them all.
Format 3
Find the error
This proof claims that the sum of two odd numbers is always 2 more than a multiple of 4. The simulation found that false for 1 and 3. Select the faulty line, then say what is wrong with it.
Simulate
A claim of your own to prove
Square some odd numbers and subtract 1, then divide by 4. Each row prints , , the quotient and the remainder.
Every remainder is 0, so each odd square is 1 more than a multiple of 4: and . All 1,000 odd numbers from to agree. The converse fails, though: 5, 13 and 17 are 1 more than a multiple of 4 but are not squares.
Conjecture
For every odd integer , there is an integer with .
A thousand cases agree. Prove it for every odd integer with the three moves of a direct proof.
Format 4
Write it
Prove that the square of every odd integer is 1 more than a multiple of 4. That is, for every odd there is an integer with .
Saved in this browser as you type.
Write your own first: a proof you have tried to write teaches far more than one you only read.
Summary card
- is even if , and odd if , for some integer . Every integer is one or the other, never both.
- A direct proof of "if , then ": assume , unpack it with the definitions, do the algebra, and repack the result into the form of .
- The sum of two odd integers is even, and their product is odd. The square of an odd integer is .
- Give each number its own letter. One for two odd numbers proves a claim only for equal numbers.