Looking for comments on my answer to this problem: prove that 3 divides n^(3)+2n whenever n is a nonnegative integer (undergraduate discrete math)
The actual text of the problem requires that you use induction, but induction doesn't really help me to understand why an assertion is true. So this is my attempt to actually understand the assertion. Comments both on my reasoning and clarity/parsimony are appreciated.
My answer:
The assertion can be proven by considering four cases: n=0, n=1, n=3k, and n≠1,0 or 3k. The first two can be proven by direct computation. The third follows from the fact that n^(3)+2n=n(n^(2)+2), and any number times a multiple of 3 is also a multiple of 3.
For the fourth case, recall that any integer not divisible by three falls into one of two congruence classes modulo 3, [1] (i.e., the integers congruent to 1 mod 3), and [2] (the integers congruent to 2 mod 3). For our assertion to be true, the result of squaring any integer in [1] or [2] must be in [1].
Now, any time you add n∈[1] to itself, it switches first to [2], then to [0], then back to [1], and so on. This means that every third addition of n∈[1] to itself belongs to [0], and since n∈[1] is one more than a multiple of three, (n∈[1])^2 belongs to [1].
Repeated addition of n∈[2] to itself creates the following sequence of congruence classes: [1],[0],[2],[1], and so on. Again, every third addition of the number to itself belongs to [0] (i.e., is a multiple of three). Since n∈[2] is two more than a multiple of three, (n∈[2])^2 also belongs to [1].
Having examined all the possible cases, the assertion is proved.
Posted Feb 1, 2020, 10:19 PM UTC · edited