Solution
Starting to check with some examples, we notice quickly that it seems like only the powers of two cannot be expressed this way.
- To prove this, suppose first that our integer can be written as a sum of consecutive integers :
with . Then by multiplying by 2 to get rid of the denominator :
which shows that divises , hence is a power of 2 itself, say, , with .
Plugging this back into the equation gives :
But this is impossible : the term is odd, so it cannot be a factor of .
This contradictions means that can never be written as a sum of consecutive integers.
- Now suppose that our integer is not a power of 2. This means that has an odd factor, say , such that for some . Let’s show that it can be written as a sum of consecutive integers. We work backwards from the answer : assume that it can be written this way, that is, there is a positive integer and such that :
And again multiplying by 2 on each side to get rid of the denominator :
and are of opposite parity. Now, a natural choice is to suppose one of the two following :
- and . We get that . This is positive for . If this condition is verified, let’s check that this choice of and yields the right decomposition :
2) If and , we get that . This is positive for . Again, it is straightforward to check that if this condition is verified, then this choice of and are correct.
Because one of the two conditions has to be true, then the property has been shown.

No messages yet.