Monthly Archives: September 2017

How many ways are there to express a positive integer as a sum of more than one consecutive positive integers?


During one of company meetings, a co-worker raised an interview question that aroused my intense interest. The question goes like this:

Given a positive integer N, how many different ways can one express it as a sum of consecutive integers?

Continue reading