(Sums of consecutive integers)$N=a+(a+1)+\cdots+(a+k-1)$ means $2N=k(2a+k-1)$, where $k$ and $2a+k-1$ have opposite parity. So the number of ways to write $N$ as a sum of one or more consecutive positive integers equals the number of odd divisors of $N$.
← 返回练习 558