Imagine Wrote:Can anyone show me how to prove this through mathematical induction?
I'll just assume that you know very briefly what induction is, so my explanation may be a little too detailed. Hopefully that's not an issue.
Many people have already given you a good start, but let us for convenience just state what an induction proof of the statement S does:
- Prove that S is true for some number m.
- Prove that if S(n) is true, then S(n+1) is also true.
The last part may not only be S(n+1), but S(n-1) as well. We'll look into this, as the case you showed us is such a proof.
First, start off by defining a function - people usually call this one P, but it doesn't matter - which is related to the proof you're supposed to show.
For this case, we can define P as one of these functions:
I'll use the latter, as it fits better to the proof - however, both works just as fine.
Next we need to find out is, as this is induction, if we need to prove the induction one direction or two directions. In this case, we need to prove it
two ways (namely, both for n + 1 and n - 1).
This is extremely important! If you only prove it one way, you've just done a halfway correct proof.
Now, as people earlier has shown, P(-1) and P(1) are both divisible by 9. I prefer to use P(0) (or P(1) whenever P(0) is not defined or not within the scope we're proving for) as it's convenient and looks nice, but it doesn't really matter.
So, if a number
n is divisible by 9, it can be written as
It may sound stupid to point that out, but it'll be very important later on.
So, is P(0) divisible by 9? Indeed it is, we can split it up as above:
Now, we've done step 1: We've proven that P(n) is true for n = 0. Next thing we need to do, is to prove that
if P(n) is divisible by 9,
then P(n + 1) is also divisible by 9. As we need to prove this both ways, we'll do P(n - 1) afterwards.
Now, this is probably the hardest part: How can we use what we already know to show that this is true? Well, as Stereo stated, we can prove that the difference between these 3-sums are divisible by 9: We know that the difference between two numbers which is divisible by 9 is also divisible by 9!
Assume now that P(n) is divisible by 9: then we have that
Now, as we know that 9m is divisible by 9, we only have to prove that (n+3)^3 - n^3 is divisible by 9. If you expand the algebraic monster (n + 3)^3, you get
As we see, in the expanded version of (n+3)^3, only n^3 is not divisible by 9, but we're subtracting it from the value. Let's see here:
This proves that
if P(n) is divisible by 9, then P(n + 1) is divisible by 9 as well! Now, as we showed earlier, P(0) is divisible by 9. This means that P(1) is divisible by 9, which again means that P(3) is divisible by 9. As you probably understand, now we've proven that for all numbers n >= 0, P(n) is divisible by 9.
But what about n - 1? This is usually very similar to the n + 1 case, so you can usually just modify the n + 1 case to work for n - 1 cases. I'll do that here: The first line contains an earlier line we've shown, and by shifting n + 1 to n and n to n - 1 in the second line, we can "swap" the places between P(n-1) and P(n):
Now, this is very simple. As you can see n^3 - (n + 3)^3 is just - ((n + 3)^3 - n^3), and we know that this is divisible by 9. Therefore,
if P(n) is divisible by 0,
then P(n - 1) is divisible by 9. Now we see that this holds for all integers!
(PS: The last part is not a proof, it's just an explanation on how to prove it.)
Noah