Ma · Mathematics

How to Prove the Sum of the First n Odd Numbers by Induction

Published By the 9to5Science editorial team

At a glance

  1. 1. Check the base case

    Substitute n = 1 and verify that the first odd number equals 1 squared.

  2. 2. Assume the formula

    Suppose the sum of the first k odd numbers is k squared for some positive integer k.

  3. 3. Add the next term

    The next odd number is 2k + 1; add it to the assumed sum and simplify.

  4. 4. Match the result

    Factor the expression as (k + 1) squared to complete the induction step.

The first nn positive odd numbers are 1,3,5,…,2n−11,3,5,\ldots,2n-1. Their sum has a simple closed form: it is n2n^2. Mathematical induction proves this by showing that the formula works for the first value and that its truth for one value forces it to hold for the next.

State the claim precisely

For every positive integer nn, define

P(n):∑i=1n(2i−1)=n2.P(n):\quad \sum_{i=1}^{n}(2i-1)=n^2.

The summand 2i−12i-1 is the iith positive odd number: when i=1i=1 it is 11, when i=2i=2 it is 33, and so on. Thus the left-hand side adds the first nn odd numbers.

Base case: n=1n=1

When n=1n=1, the sum contains just one term:

∑i=11(2i−1)=2(1)−1=1.\sum_{i=1}^{1}(2i-1)=2(1)-1=1.

The right-hand side is also 12=11^2=1. Therefore, P(1)P(1) is true.

Inductive step

Assume the statement is true for an arbitrary positive integer kk. This assumption is the inductive hypothesis:

∑i=1k(2i−1)=k2.\sum_{i=1}^{k}(2i-1)=k^2.

To prove the next case, consider the sum through k+1k+1. It consists of the sum through kk, together with one new term, the (k+1)(k+1)st odd number:

∑i=1k+1(2i−1)=∑i=1k(2i−1)+(2(k+1)−1)=k2+(2k+1)=k2+2k+1=(k+1)2.\begin{aligned} \sum_{i=1}^{k+1}(2i-1) &=\sum_{i=1}^{k}(2i-1)+\bigl(2(k+1)-1\bigr)\\ &=k^2+(2k+1)\\ &=k^2+2k+1\\ &=(k+1)^2. \end{aligned}

The second line uses the inductive hypothesis. The final expression is exactly the right-hand side of P(k+1)P(k+1). Therefore, if P(k)P(k) is true, then P(k+1)P(k+1) is true.

Conclusion by induction

The statement holds for n=1n=1, and its truth for any positive integer kk implies its truth for k+1k+1. By mathematical induction,

∑i=1n(2i−1)=n2for every positive integer n.\boxed{\sum_{i=1}^{n}(2i-1)=n^2\quad\text{for every positive integer }n.}

Check with a concrete value

Take n=4n=4. The sum is 1+3+5+7=161+3+5+7=16, and the formula gives 42=164^2=16. In the inductive step, this same calculation appears as extending the sum through 33:

1+3+5=32=9,9+7=9+(2⋅3+1)=16=42.1+3+5=3^2=9,\qquad 9+7=9+(2\cdot3+1)=16=4^2.

The example illustrates the induction step: once the formula is known through kk, adding the next odd number changes k2k^2 into (k+1)2(k+1)^2.

Why adding the next odd number works

The difference between consecutive squares is

(k+1)2−k2=2k+1.(k+1)^2-k^2=2k+1.

That difference is precisely the next odd number after 1,3,…,2k−11,3,\ldots,2k-1. So the sum grows from k2k^2 to (k+1)2(k+1)^2 when that odd number is added. This observation explains why the formula fits the pattern; the induction proof makes the reasoning apply to every positive integer, not just to a few examples.

Common mistakes

  • Checking only a few values. Examples such as n=1,2,3n=1,2,3 can suggest the formula, but they do not prove it for all positive integers. The inductive step is what covers every subsequent value.
  • Adding the wrong next term. After the sum through kk, the next index is k+1k+1, so its term is 2(k+1)−1=2k+12(k+1)-1=2k+1, not 2k−12k-1.
  • Assuming what you need to prove. In the inductive step, assume only the statement for kk. Then use that assumption to derive the statement for k+1k+1; do not assume the formula already holds for all nn.
  • Forgetting the base case. The step shows how truth passes from one integer to the next, but a starting case is needed to begin that chain.

If the index range is taken to include n=0n=0, the empty sum is defined to be 00, and the formula also holds there because 02=00^2=0. The usual induction proof above starts at n=1n=1, the first positive integer.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.