Qm

Writing 100 as a sum of consecutive numbers

For example, 15 = 7 + 8 = 4 + 5 + 6 = 1 + 2 + 3 + 4 + 5, so 15 can be written as a sum of consecutive positive whole numbers in three ways (using at least two terms).

In how many ways can 100 be written as a sum of two or more consecutive positive whole numbers? List them.

Show a hint

A run of k consecutive numbers starting at a adds up to k times a plus k(k minus 1)/2. Try each k in turn and see whether a comes out as a positive whole number.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Which numbers cannot be a sum of consecutive numbers?The smallest number with exactly twelve divisorsWhy the sum of the first n cubes is always a perfect squareThe 100 lockers problemThe person whose age is the square root of the yearWhich is bigger, e to the pi or pi to the e?
All questions →