Consecutive Integers Calculator

The Consecutive Integers Calculator finds a run of consecutive integers that add up to a target sum. Enter the target sum and how many consecutive integers to use.

Formula

First = (Sum − k(k−1)/2) ÷ k, then add 1 each step for k integers
  • A valid run exists only when the first term comes out as a whole number.
  • The k integers are first, first+1, …, first+k−1.

5 integers summing to 100

Inputs
  • Target Sum: 100
  • How Many Integers: 5

18, 19, 20, 21, 22 sum to 100.

Frequently asked questions

Can any number be a sum of consecutive integers?
Not for every count. A solution exists only when the starting integer works out to a whole number.