Consecutive integers and their sums