Then I read Kevin McCall's much better proofs of the same postulates. What a difference! Where I had hammered out my proofs by algebraic brute force, McCall had understood. -- and left me thinking, in T. H. Huxley's much-quoted words, "How extremely stupid not to have thought of that!"
⁂
The heart of McCall's proof is the observation that, in modular arithmetic with modulus k, adding k - n is equivalent to subtracting n. You can easily see this in the most familiar everyday use of modular arithmetic, which is our 12-hour clock, with modulus 12. If you want to get from 11:00 to 7:00, for example, you can either subtract 4 hours or add 12 - 4 = 8 hours.
The series of triangular numbers is generated by starting with 0, then adding 1, then adding 2, then 3, and so on through the succession of natural numbers. Due to the fact that k - n ≡ -n (mod k), one you've added numbers up to a certain point, you start doing the modular equivalent of subtracting those same numbers in reverse order, creating a palindrome. For example, if the modulus is 7:
- 0
- +1
- +2
- +3
- +4 ≡ -3 (mod 7)
- +5 ≡ -2 (mod 7)
- +6 ≡ -1 (mod 7)
- etc.
Obviously, this will create a repeating palindromic pattern with a period of 7.
Why is the period twice as long for even moduli? Consider the case when the modulus is 6.
Why is the period twice as long for even moduli? Consider the case when the modulus is 6.
- 0
- +1
- +2
- +3
- +4 ≡ -2 (mod 6)
- +5 ≡ -1 (mod 6)
- +6 ≡ 0 (mod 6)
- +7 ≡ +1 (mod 6)
- +8 ≡ +2 (mod 6)
- +9 ≡ -3 (mod 6)
- +10 ≡ -2 (mod 6)
- +11 ≡ -1 (mod 6)
- etc.
Because the modulus k is even, k ÷ 2 ≡ -k ÷ 2 (mod k). In this case 3 ≡ -3 (mod 6). That means that, when we go through the first cycle of 6 integers, we add 1, add 2, add/subtract 3, subtract 2, and subtract 1. We can think of this as adding or subtracting 3, but whichever it is, we only perform the operation once in a single cycle, so at the end of the cycle we still have something congruent to 3 (mod 6); we have not yet returned to the 0 with which we began. However, if we go through two cycles, we can think of ourselves as adding 3 the first time around and then subtracting it the second time, bringing us back to our starting point. Thus, the period is twice as long for even moduli, and the palindrome is centered on k ÷ 2, a number which is special because it alone is congruent to its own negation.
⁂
Now I understand -- and just about anyone else can understand, too, without any need to pore over complicated algebraic operations. Congratulations, Kevin McCall; you've really solved this, whereas I was just crunching numbers.
No comments:
Post a Comment