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