By the fundamental theorem of arithmetic, every positive integer greater than 1 can be written as a product of primes. Thus, we can write every positive integer as \(2^{ k }p_{ 1 }^{ q_{ 1 } }p_{ 2 }^{ q_{ 2 } }...p_{ m }^{ q_{ m } }\) for some non-2 primes \(\{ p_{ i }\} _{ i=1 }^{ m }\), some non-negative integer \(k\) and some positive integers \(\{ q_{ i }\} _{ i=1 }^{ m }\). Let's say that the sequence of consecutive integers starts at some integer \(x\) and ends at some integer \(x+n\) where \(n \) is some positive integer (thus there are \(n+1\) terms in the sequence). Note that this excludes sets with just one member. The sum of the consecutive integers is then given by \(\sum _{ k=0 }^{ n }{ (x+k) } \), and thus we need \(\sum _{ k=0 }^{ n }{ (x+k) } =2^{ k }p_{ 1 }^{ q_{ 1 } }p_{ 2 }^{ q_{ 2 } }...p_{ m }^{ q_{ m } }\) for the particular \(x\) and \(n\) to constitute a valid sequence of \(n+1\) members. This gives that \((n+1)x+\frac { n(n+1) }{ 2 } =2^{ k }p_{ 1 }^{ q_{ 1 } }p_{ 2 }^{ q_{ 2 } }...p_{ m }^{ q_{ m } }\quad \Leftrightarrow \quad x+\frac { n }{ 2 } =\frac { 2^{ k }p_{ 1 }^{ q_{ 1 } }p_{ 2 }^{ q_{ 2 } }...p_{ m }^{ q_{ m } }\quad }{ n+1 } \), and thus \(x=\frac { 2^{ k }p_{ 1 }^{ q_{ 1 } }p_{ 2 }^{ q_{ 2 } }...p_{ m }^{ q_{ m } }\quad }{ n+1 } -\frac { n }{ 2 } \).
So, the question becomes, how many positive integers can we choose such that the right-hand side of that equation is an integer and thus, so too, is .
Well, there are two potential cases, that is even and that is odd. If is even, we have that is an integer and thus, so too, must be. Therefore, we have that . If that is the case, along with n being even, must then be an integer and and constitute a valid pair. Thus, must be any divisor of such that is even, or, equivalently that is odd. Thus, we can let be any odd, positive divisor (except 1) of giving valid pairs which have even (we wish to exclude the case where , as must be a positive integer). Next, we have the case that is odd. Going back to , we have, multiplying both sides by 2, that . Noting that because is odd and is even, the left-hand side is an odd integer, and thus, so too, must the right-hand side be. Thus, must be a divisor of such that . Therefore, we have that where can be any positive divisor of , as if is a positive integer and is a non-negative integer will always be a positive integer. Thus, because each corresponds to valid odd we have valid odd and, thus, total valid , corresponding to exactly that many sequences of consecutive integers which sum to our original positive integer (excluding the sequence of just that positive integer)!
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
This is an unusually interesting setup. I think having a problem that applies these stuffs might be worthwhile. Would you like to post one?