Sum of First N Numbers
Add the first n natural, odd or even numbers, or the squares or cubes of the first n natural numbers. Useful for sequences and counting problems.
Each field is labelled with its meaning. Use consistent units within one calculation. Results are rounded for display.
Choose a mode, enter values and calculate. Use decimal points; lists accept commas or spaces.
Formula and method
Naturals: n(n+1)/2. Odds: n². Evens: n(n+1). Squares: n(n+1)(2n+1)/6. Cubes: [n(n+1)/2]².
Worked example
For n = 3, the square sum is 1²+2²+3² = 14. The cube sum is 1³+2³+3³ = 36.
Read the result
The result is a sum, not the nth term. Odd terms start at 1 and even terms at 2.
Limits and edge cases
n must be a whole number from 0 to 10^12. n = 0 means the empty sum, which is zero. Exact integer arithmetic is used. Natural numbers here start at 1.
Frequently asked questions
Does natural-number mode include zero?
It sums 1 through n. Adding a leading zero would not change the sum, but n still counts positive terms here.
Why reject negative n?
A negative count of initial terms is not defined for these series.