Number Fundamentals & Precision

Consecutive Integers Calculator

Find an exact integer sequence from its sum, length, and spacing.

Exact arithmetic

Find an integer sequence from its sum

2–1,000 terms

Sequence result

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Quick guide

How to use this calculator

  1. Enter the target integer sum.
  2. Choose 2–1,000 terms and spacing 1 or 2.
  3. Read the unique sequence or the truthful no-solution state.

Calculation method

Solve the arithmetic-sequence sum

For first term a, count n, and step d, the sum is n(2a+(n−1)d)/2. Rearranging gives a; an integer sequence exists only when that value is integral.

Worked example

Three integers adding to 48

Subtract the spacing contribution 3, then divide 45 by 3 to get the first term 15.

15 + 16 + 17 = 48

Supported inputs

Precision and limits

Count

Choose from 2 through 1,000 terms.

Spacing

Step 1 gives consecutive integers; step 2 gives consecutive values of the same parity.