Sub topic 14
Sums of the First n Natural Numbers, Squares and Cubes
This chapter assumes you can already find the nth term and the sum of an AP, and that you are comfortable with basic algebra such as factorising and expanding. Three formulas turn up again and again in CAT progression questions, and you should know them by heart. They are the sums of the first n natural numbers, of their squares, and of their cubes.
The three standard formulas
Write the sums with the symbol Σ (sigma), which means "add up the terms for k = 1 to n".
| Sum | Formula | Example for n = 10 |
|---|---|---|
| 1 + 2 + ... + n | n(n+1)/2 | 55 |
| 1² + 2² + ... + n² | n(n+1)(2n+1)/6 | 385 |
| 1³ + 2³ + ... + n³ | [n(n+1)/2]² | 3025 |
The third row has a useful consequence. The sum of the first n cubes equals the square of the sum of the first n natural numbers. For n = 10 that is 55² = 3025.
n = 10
print(sum(range(1, n + 1)) == n * (n + 1) // 2) # True, value 55
print(sum(k * k for k in range(1, n + 1)) == n * (n + 1) * (2 * n + 1) // 6) # True, value 385
print(sum(k ** 3 for k in range(1, n + 1)) == (n * (n + 1) // 2) ** 2) # True, value 3025Where the formulas come from
You do not need to re-derive them in the exam, but knowing the source helps you remember them and rebuild one if your memory slips.
Sum of natural numbers
The numbers 1, 2, ..., n form an AP with a = 1, d = 1 and last term n. The AP sum formula, n/2 × (first + last), gives n(n+1)/2.
Sum of squares
A standard route uses the identity (k+1)³ − k³ = 3k² + 3k + 1. Add this over k = 1 to n. The left side telescopes, which means the middle terms cancel, and leaves (n+1)³ − 1. The right side becomes 3S₂ + 3S₁ + n, where S₂ is the sum of squares and S₁ is the sum of natural numbers. Solving for S₂ with S₁ = n(n+1)/2 gives n(n+1)(2n+1)/6.
Sum of cubes
The same method works with (k+1)⁴ − k⁴. It produces [n(n+1)/2]².
Using the formulas
Sum over a range that does not start at 1
To add the terms from m to n, subtract the part you do not want:
Sum from m to n = S(n) − S(m−1)
Example: find 11² + 12² + ... + 20².
- S₂(20) = 20 × 21 × 41 / 6 = 2870.
- S₂(10) = 385.
- The answer is 2870 − 385 = 2485.
Sums of even and odd numbers
- The first n even numbers: 2 + 4 + ... + 2n = n(n+1).
- The first n odd numbers: 1 + 3 + ... + (2n−1) = n².
- The squares of the first n even numbers: 4 × n(n+1)(2n+1)/6.
- The squares of the first n odd numbers: n(2n−1)(2n+1)/3.
Check the last one with n = 3. The sum 1 + 9 + 25 = 35, and 3 × 5 × 7 / 3 = 35.
Sums of a general term
Many questions give a term such as k(k+1) or k² + 2k. Expand it, then split the sum into the three standard pieces.
Example: find 1×2 + 2×3 + ... + n(n+1).
- Expand: k(k+1) = k² + k.
- Sum: n(n+1)(2n+1)/6 + n(n+1)/2.
- Factor out n(n+1)/6: n(n+1)/6 × [(2n+1) + 3] = n(n+1)(n+2)/3.
For n = 10 this gives 10 × 11 × 12 / 3 = 440. Remember the closed form n(n+1)(n+2)/3, because products of consecutive integers appear often.
Finding n from a given sum
If a question gives the sum and asks for n, set up the formula as an equation. Suppose 1 + 2 + ... + n = 210. Then n(n+1) = 420, and since 20 × 21 = 420, n = 20. Look for two consecutive integers whose product matches, instead of using the quadratic formula.
A quick way to estimate and check
For large n, the sum of squares is close to n³/3 and the sum of cubes is close to n⁴/4. These estimates help you rule out wrong options fast. They are only approximations, so use them to eliminate choices, not to pick the final answer.
A second check is divisibility. The sum of squares n(n+1)(2n+1)/6 must be a whole number for every n. If your answer fails this, you have made an arithmetic slip.
Common errors
- Dropping the square in the cube formula. The sum of cubes is the square of n(n+1)/2, not n(n+1)/2 itself.
- Wrong subtraction limit. For terms from m to n, subtract S(m−1), not S(m).
- Mixing up odd and even results. The sum of the first n odd numbers is n², and the sum of the first n even numbers is n(n+1).
- Applying the AP formula to squares. The squares 1, 4, 9, 16 have differences 3, 5, 7, so they do not form an AP. Use the square-sum formula instead.
- Forgetting the factor 6. The denominator of the sum of squares is 6. Test with n = 1, where the result must be 1.
A quick test is to substitute n = 1 and n = 2 into your final formula. For squares, n = 2 must give 5, and for cubes it must give 9.
Worked CAT-style example
Find the value of 1³ + 2³ + ... + 12³ − (1 + 2 + ... + 12)².
Use the fact that the sum of cubes equals the square of the sum of natural numbers. The two quantities are equal, so the answer is 0. Computing 78² and 78² separately would waste time. Spotting the identity is the entire solution.
A second example: the sum of the squares of the first n natural numbers is 285. Find n.
- Try n(n+1)(2n+1) = 1710.
- Test n = 9: 9 × 10 × 19 = 1710. This matches.
- So n = 9.
Exercise
Find the value of 1² + 2² + ... + 15² minus the sum of the first 15 natural numbers, and then give the sum 2² + 4² + ... + 30².
Show answer
S₂(15) = 15 × 16 × 31 / 6 = 1240, and S₁(15) = 120, so the first value is 1240 − 120 = 1120. For the second, 2² + 4² + ... + 30² = 4 × S₂(15) = 4 × 1240 = 4960.
Exercise
Find 1×2 + 2×3 + ... + 20×21 using the closed form for the sum of k(k+1).
Show answer
Use n(n+1)(n+2)/3 with n = 20: 20 × 21 × 22 / 3 = 9240 / 3 = 3080.
Exercise
The sum 1³ + 2³ + ... + n³ equals 44100. Find n.
Show answer
The sum equals [n(n+1)/2]², so n(n+1)/2 = 210. Then n(n+1) = 420, and since 20 × 21 = 420, n = 20.