all positive integers are polite numbers except powers of two
Theorem. All positive integers are polite numbers (that is, can be expressed as the sum of consecutive nonnegative integers in at least one way), with the exception of the even powers of two.
Perhaps the most elegant way to prove this theorem is to assert that the powers of two do have “polite representations” and follow the logic until a contradiction is reached. But this might not answer any other questions about what forms these representations take. Looking at a table of representations, it is clear that some numbers have lots of representation, and that there are patterns to these representations. Proving this theorem, however, requires only showing that most numbers have at least one representation and the powers of two have none. The patterns observed from a table of representations can actually be used to build up a proof.
Lemma 1. An odd number is always a polite number.
If nothing else, there is always , with . Note that for , the only valid representation is 0 + 1, which, while inelegant, is technically valid because the theorem calls for sums of nonnegative numbers, as opposed to positive numbers. This takes care of all the odd numbers.
But what of the even numbers? There is no ready way to generalize this to all even numbers, so perhaps we could try classifying the even numbers as singly even (or odd times 2) and doubly even.
Lemma 2. Any singly even number is the sum of four consecutive integers.
We rewrite as . The relevant four consecutive integers are , , and . We verify that . Note that for the consecutive integers are , 0, 1 and 2, with the first of these being a negative number.
So all composite singly even numbers are taken care of by this lemma.
Lemma 3. All multiples of 3 are polite, represented by the sum of three consecutive integers.
Given , we rewrite as . Then , and are the consecutive integers, verified with .
The number 3 has a representation by Lemma 1, that is, 3 = 1 + 2, but Lemma 3 also gives a valid representation: 3 = 0 + 1 + 2.
Lemma 4. All multiples of 5 are polite, represented by the sum of five consecutive integers.
Given , we rewrite as . Then , , , and are the consecutive integers, verified with .
For the number 5, we have to fall back on Lemma 1. But for 10 and all higher multiples of 5, this lemma gives a valid representation.
Obviously these last two lemmas can be generalized.
Lemma 5. All composite multiples of an odd prime are the sum of consecutive integers.
If then clearly . Ignoring and for a moment, we can pair up each addend from 1 to with another number in the range so the two of them add up to : , , etc. Since is even, no number is left out in this pairing up. Thus we have . Putting the last back in we have This means that the th triangular number is divisible by . Putting back in, it is now clear that since , is is divisible by . The smallest multiple of thus representable with a run of consecutive nonnegative integers is the th triangular number, which is the sum of the integers from 0 to .
Since is an odd prime, it has a representation under Lemma 1. But what of to ? is singly even, and is thus covered by Lemma 2. Any other composite multiple of between and must be divisible by some other odd prime and is thus covered by this Lemma anyway. For example, the multiples of 11: the number 22 is covered by Lemma 2, 33 is covered by this Lemma using , and 55 is covered by this Lemma using . For 77, this Lemma applies with either or .
Lemma 6. Any run of consecutive integers, with an odd prime, will add up to a multiple of .
Breaking up the single run of consecutive integers into runs of consecutive integers, it is clear by the previous lemma that each of those runs add up to a multiple of . Adding up multiples of gives yet another multiple of .
Lemma 7. A run of consecutive integers is divisible by but not .
With , the s clearly add up to . What of the th triangular number? We can pair up almost all the numbers 1 to so that they add up to : , , etc. These add up to . But since is even and odd, there is a number left out, specifically . So we have . All three addends are divisible by but only the first two are divisible by .
To prove the theorem now is simply a matter of putting the lemmas together.
Proof.
Lemma 1 took care of proving that all odd numbers are polite. Lemma 2 took care of proving all singly even numbers are polite, with the important exception of 2, the first power of two. At this point it remains to prove whether or not all doubly even numbers are polite, but there seems no simple way to kill all the birds with one stone. So from here we’ll try to prove politeness for kinds of numbers that overlap partially with those covered by the first two lemmas. Lemma 3 proves the politeness of multiples of 3 by giving the solution as a sum of three consecutive integers. Then Lemma 4 proves the politeness of multiples of 5 by giving the solution as a sum of five consecutive integers. Obviously it is impractical to try to prove this for every single odd prime, so it is far more efficient to generalize this to all odd primes without any loss of comprehesion. Thus Lemma 5 makes this generalization, and from this follows Lemma 6, which shows that any run of consecutive integers adds up to a multiple of .
Now we have covered the politeness of: all odd numbers, all singly even numbers except 2, and some of the doubly even numbers, namely those divisible by odd primes. So now it remains to prove or disprove the politeness of powers of two. The solution for a power of two must not be a run of consecutive integers with an odd prime, since . By Lemma 7, a run of consecutive integers that add up to a multiple of must be long. To determine the smallest number such a run of nonnegative integers would add up to, we plug into the second equation for given by Lemma 7, obtaining . This means that , even when . Furthermore, there is no way to reduce the expression we have obtained for to a single power of two, meaning that must be divisible by some odd prime. This proves that there is no run of consecutive nonnegative integers that will add up to a power of two other than 1. It has already been proven that all other positive integers do have such a representation. ∎
Just a few quick examples: The even number 30 can be represented as the sum of four consecutive integers (6 + 7 + 8 + 9), and since it is a multiple of 3 and 5, it can be represented as the sum of three or four consecutive integers: 9 + 10 + 11 = 4 + 5 + 6 + 7 + 8. The odd number 31 can be represented as 15 + 16. We can represent some multiples of 32 as the sum of 64 consecutive positive integers; the smallest number representable thus is 2080, which leaves a remainder of 32 when divided by 64, showing that it is divisible by 32, but also by the odd primes 5 and 13.
Title | all positive integers are polite numbers except powers of two |
---|---|
Canonical name | AllPositiveIntegersArePoliteNumbersExceptPowersOfTwo |
Date of creation | 2013-03-22 18:10:02 |
Last modified on | 2013-03-22 18:10:02 |
Owner | PrimeFan (13766) |
Last modified by | PrimeFan (13766) |
Numerical id | 7 |
Author | PrimeFan (13766) |
Entry type | Theorem |
Classification | msc 11A25 |
Related topic | PowerOfTwo |