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?**

Leave a reply

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?**