PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: High Entry average rating: Very high
[parent] all positive integers are polite numbers except powers of two (Theorem)

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.

To prove this theorem, it is necessary first to prove that most positive integers can be represented in this way and then to prove that there is no such representation for the powers of two.

Lemma 1. An odd number $ n$ is always a polite number.

If nothing else, there is always $ n = m + (m + 1)$, with $ m = \frac{n - 1}{2}$.

Lemma 2. Any singly even number $ n \equiv 2 \mod 4$ is the sum of four consecutive integers.

We rewrite $ n$ as $ 4m + 2$. The relevant four consecutive integers are $ (m - 1)$, $ m$, $ (m + 1)$ and $ (m + 2)$. We verify that $ (m - 1) + m + (m + 1) + (m + 2) = 4m - 1 + 1 + 2 = 4m + 2 = n$. Note that for $ n = 2$ the consecutive integers are $ -1$, 0, 1 and 2, with the first of these being a negative number.

Lemma 3. All multiples of 3 are polite.

Given $ n = 3m$, we rewrite $ 2m$ as $ (m - 1) + (m + 1)$. Then $ (m - 1)$, $ m$ and $ (m + 1)$ are the consecutive integers, verified with $ (m - 1) + m + (m + 1) = 2m + m = 3m = n$.

Lemma 4. All multiples of 5 are polite.

Given $ n = 5m$, we rewrite $ 4m$ as $ (m - 2) + (m - 1) + (m + 1) + (m + 2)$. Then $ (m - 2)$, $ (m - 1)$, $ m$, $ (m + 1)$ and $ (m + 2)$ are the consecutive integers, verified with $ (m - 2) + (m - 1) + m + (m + 1) + (m + 2) = 4m + m = 5m = n$.

Obviously these last two lemmas can be generalized.

Lemma 5. All composite multiples of an odd prime $ p$ are the sum of $ p$ consecutive integers.

If $ n = (m + 1) + (m + 2) + \ldots + (m + p)$ then clearly $ n = mp + 1 + 2 + \ldots + p$. Ignoring $ mp$ and $ p$ for a moment, we can pair up each addend from 1 to $ p - 1$ with another number in the range so the two of them add up to $ p$: $ 1 + (p - 1)$, $ 2 + (p - 2)$, etc. Since $ p - 1$ is even, no number is left out in this pairing up. Thus we have $ \displaystyle \left( \frac{p - 1}{2} \right)p$. Putting the last $ p$ back in we have $ \displaystyle \left( \frac{p - 1}{2} + 1 \right)p = \left( \frac{p^2 - p}{2} + p \right) = \left( \frac{p^2 + p}{2} \right).$ This means that the $ p$th triangular number is divisible by $ p$. Putting $ mp$ back in, it is now clear that since $ \displaystyle n = mp + \left( \frac{p^2 + p}{2} \right)$, $ n$ is is divisible by $ p$. The smallest multiple of $ p$ thus representable with a run of consecutive nonnegative integers is the $ (p - 1)$th triangular number, which is the sum of the integers from 0 to $ p - 1$.

Lemma 6. Any run of $ mp$ consecutive integers, with $ p$ an odd prime, will add up to a multiple of $ p$.

Breaking up the single run of $ mp$ consecutive integers into $ m$ runs of $ p$ consecutive integers, it is clear by the previous lemma that each of those $ m$ runs add up to a multiple of $ p$. Adding up $ m$ multiples of $ p$ gives yet another multiple of $ p$.

Lemma 7. A run of $ 2^a$ consecutive integers is divisible by $ 2^{a - 1}$ but not $ 2^a$.

With $ n = (m + 1) + (m + 2) + \ldots + (m + 2^a)$, the $ m$s clearly add up to $ 2^a m$. What of the $ 2^a$th triangular number? We can pair up almost all the numbers 1 to $ 2^a - 1$ so that they add up to $ 2^a$: $ 1 + 2^a - 1$, $ 2 + 2^a - 2$, etc. These add up to $ (2^a - 2)2^a = 2^{2a} - 2^{a + 1}$. But since $ 2^a$ is even and $ 2^a - 1$ odd, there is a number left out, specifically $ \frac{2^a}{2} = 2^{a - 1}$. So we have $ n = 2^a m + (2^{2a} - 2^{a + 1}) + 2^{a - 1}$. All three addends are divisible by $ 2^{a - 1}$ but only the first two are divisible by $ 2^a$.

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 $ p$ consecutive integers adds up to a multiple of $ p$.

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 $ mp$ consecutive integers with $ p$ an odd prime, since $ 2^a \nmid p$. By Lemma 7, a run of consecutive integers that add up to a multiple of $ 2^a$ must be $ 2^{a + 1}$ long. To determine the smallest number such a run of nonnegative integers would add up to, we plug $ m = 0$ into the second equation for $ n$ given by Lemma 7, obtaining $ n = (2^{2a} - 2^{a + 1}) + 2^{a - 1}$. This means that $ n > 2^a$, even when $ m = 0$. Furthermore, there is now way to reduce the expression we have obtained for $ n$ to a single power of two, meaning that $ n$ 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. $ \qedsymbol$

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 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.



"all positive integers are polite numbers except powers of two" is owned by PrimeFan.
(view preamble)

View style:

See Also: power of two


This object's parent.
Log in to rate this entry.
(view current ratings)

Cross-references: remainder, represent, even number, expression, equation, solution, simple way, doubly even numbers, point, almost all, representable, clear, divisible, triangular number, pairing, even, range, number, moment, prime, odd, composite, multiples, negative number, singly even number, odd number, powers of two, representation, necessary, even powers, consecutive, sum, polite numbers, integers, positive

This is version 2 of all positive integers are polite numbers except powers of two, born on 2008-06-29, modified 2008-07-01.
Object id is 10728, canonical name is AllPositiveIntegersArePoliteNumbersExceptPowersOfTwo.
Accessed 473 times total.

Classification:
AMS MSC11A25 (Number theory :: Elementary number theory :: Arithmetic functions; related numbers; inversion formulas)

Pending Errata and Addenda
None.
[ View all 1 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | prove | add result | add corollary | add example | add (any)