Consecutive Integers: Sums and Products
Consecutive integers form arithmetic sequences with d=1. Sum = n × (first+last)/2. To find integers summing to S: solve for the first term. Even/odd consecutive use d=2.
Why This Mathematical Concept Matters
Why: Consecutive integer problems appear in puzzles, algebra, and number theory. Given a target sum, find the sequence. Gauss formula gives 1+2+...+n = n(n+1)/2.
How: For sum of n consecutive: if first = a, sum = n×a + n(n-1)/2. Set equal to target, solve for a. For product, use factorial or iterative search.
- ●Gauss summed 1 to 100 as a child: 100×101/2 = 5050.
- ●Consecutive evens: 2, 4, 6...; odds: 1, 3, 5...
- ●Product of n consecutive is divisible by n!.
📐 Examples — Click to Load
Inputs
Set Sizes
📐 Step-by-Step Breakdown
⚠️For educational and informational purposes only. Verify with a qualified professional.
🧮 Fascinating Math Facts
Sum of first n naturals = n(n+1)/2 — Gauss formula.
Product of n consecutive integers is divisible by n!.
📋 Key Takeaways
- • Sum of n consecutive integers: n × (first + last) / 2
- • Powers of 2 cannot be written as sums of consecutive integers
- • Consecutive even/odd: same formula with step 2 instead of 1
💡 Did You Know?
📖 How It Works
For sum = n × (first + last) / 2, we solve for first given sum and n. For consecutive integers, last = first + n - 1, so first = (2×sum/n - n + 1) / 2. For even/odd consecutive, the step between terms is 2.
📝 Worked Example: 15
Sets summing to 15:
1+2+3+4+5 = 15
4+5+6 = 15
7+8 = 15
🎯 Expert Tips
- Check if 2×sum is divisible by n to quickly filter candidates
- For odd n, the middle term equals the average (sum/n)
- Powers of 2 have no representation as sum of consecutive integers
❓ FAQ
What are consecutive integers?
Whole numbers that follow each other: n, n+1, n+2, ...
Can any number be a sum of consecutive integers?
No. Powers of 2 cannot. All others can.
What is the sum of 1 to n?
n(n+1)/2. For n=100: 5050.
How to find consecutive integers with a given sum?
Solve first = (2×sum/n - n + 1)/2 for each n; first must be integer.
What about consecutive even or odd?
Same idea with step 2: first, first+2, first+4, ...
⚠️ Disclaimer: Results are for educational purposes. Verify critical calculations independently.