Proving a mathematical theorem about even numbers Hello fdrake,
Thank you for your reply and additional challenge.
Lets see.
I want to prove:
P2: The last digit of any number determines it being even or uneven.
I can use this fact about numbers:
Any number can be written in the form 10 * k + r, where r is the last digit in their decimal notation.
I'll make use of this axiom:
An even number + an even number is an even number, or:
2m + 2n = 2(m+n)
And, for any k, 10 * k is even, for
10 * k = 2(5k), thus containing 2 as a factor, making it even.
Then, if r is an even last digit number, the options for the last digit are 0, 2, 4, 6, or 8. All even numbers because of the 2m definition.
If we add any even r to 10 * k, then the result will be even, for we are adding an even number to an even number. Thus, if the last digit is even, the whole number is even.
To prove the same for uneven numbers:
An even number + an uneven number is an uneven number, or
2m + 2n+1 = 2(m+n)+1
And, for any k, 10 * k is even, for
10 * k = 2(5k), thus containing 2 as a factor, making it even.
Then, if r is an uneven last digit number, the options for the last digit are 1, 3, 5, 7, or 9. All uneven numbers because of the 2n+1 definition.
If we add an uneven r to 10 * k, then the result will be uneven, for we are adding an uneven number to an even number. Thus, if the last digit is uneven, the whole number is uneven.
I guess I'm using too much language, I am not used to formal reasoning yet. I enjoy it, though.