Video 3, chapter 9

Odd Numbers Build Squares

Why the sum of the first n odd numbers is always n squared, shown by a proof without words that builds square numbers from L-shaped borders of dots, and how the same picture leads to the difference of squares.

  • Video 3, chapter 9
  • When numbers become pictures

Add the odd numbers in order. The totals are 11, then 1+3=41 + 3 = 4, then 1+3+5=91 + 3 + 5 = 9, then 1+3+5+7=161 + 3 + 5 + 7 = 16, and every one of them is a square number. Does this go on forever, and why? This page answers with a picture of dots in which each odd number is exactly the L-shaped border that one square needs to become the next, explains why that picture proves the pattern for every nn, and then reads it backward to reach the difference of squares, with the conditions under which each picture applies.

Key terms

Sum of odd numbers

Definition For every whole number n≥1n \ge 1, the sum of the first nn odd numbers is n2n^2,

1+3+⋯+(2n−1)=n2.1 + 3 + \cdots + (2n - 1) = n^2.

The kkth odd number is 2k−12k - 1, so the last term of the sum is 2n−12n - 1. To see why the sum is n2n^2, arrange n2n^2 dots in a square of nn rows and nn columns and split it into nn layers that grow out of the bottom left corner. For each kk from 11 to nn, layer kk is the top row together with the right column of the kk by kk square of dots in the bottom left corner. That row and that column each have kk dots and share their corner dot, so layer kk has k+k−1=2k−1k + k - 1 = 2k - 1 dots. Each dot of the big square lies in exactly one layer, so adding the layers counts every dot once, and the total is n2n^2. An L-shaped border of this kind is called a gnomon.

In plain words Each odd number is exactly the L-shaped border that turns one square of dots into the next larger square.

Example In the 44 by 44 square below, each dot is replaced by the number of its layer.

4444333422341234\begin{array}{cccc} 4 & 4 & 4 & 4 \\ 3 & 3 & 3 & 4 \\ 2 & 2 & 3 & 4 \\ 1 & 2 & 3 & 4 \end{array}

The digit 11 appears once, 22 three times, 33 five times and 44 seven times, and together they fill all 1616 places, so 1+3+5+7=16=421 + 3 + 5 + 7 = 16 = 4^2. The fourth layer is a row of four across the top and a column of four down the right side, sharing the top right place, so it has 4+4−1=74 + 4 - 1 = 7 dots. A fifth layer would have 5+5−1=95 + 5 - 1 = 9 dots and give 16+9=25=5216 + 9 = 25 = 5^2.

Square numbers

Definition A square number, or perfect square, is a number n2=n×nn^2 = n \times n for a whole number n≥0n \ge 0. The square numbers are 0,1,4,9,16,25,36,…0, 1, 4, 9, 16, 25, 36, \ldots, and n2n^2 counts the dots in a square array of nn rows and nn columns. A positive whole number is a square number exactly when that many dots can be arranged in a full square with none left over. For a length x≥0x \ge 0 that need not be a whole number, x2x^2 is the area of a square with side xx. The gaps between consecutive square numbers are 1,3,5,7,…1, 3, 5, 7, \ldots, the odd numbers in order.

In plain words A square number is a whole number multiplied by itself, the number of dots in a complete square arrangement.

Example The number 49=7×749 = 7 \times 7 is a square number. The number 5050 is not, because 72=49<50<64=827^2 = 49 < 50 < 64 = 8^2, so 5050 dots make a 77 by 77 square with one dot left over and are too few for an 88 by 88 square. Between the square numbers 0,1,4,9,160, 1, 4, 9, 16 the gaps are 1,3,5,71, 3, 5, 7, which are the four layers of the 44 by 44 square above.

Proof without words

Definition A proof without words is a picture arranged so that a reader can see why a statement is true and could write out the complete argument from it. A picture counts as a proof only when its construction works in every case the statement covers, not just in the cases drawn, and when every piece has a precise job, with each dot counted exactly once, or with areas cut and moved without gaps, overlaps or stretching. A dot picture proves a statement about whole numbers. An area picture proves a statement about lengths and areas, and only for the lengths it can draw, which are never negative.

In plain words The picture is the argument, as long as each part is accounted for exactly and the same construction works at every size.

Example The layered square is a proof without words of the sum of odd numbers, because the layer that turns a k−1k - 1 by k−1k - 1 square into a kk by kk square always has k+k−1k + k - 1 dots, for every k≥2k \ge 2, not only for the layers drawn. A picture that only looks right is not enough. In the missing square puzzle the same four pieces seem to fill the same triangle twice, once with an empty square. The long edge of the figure is not straight. It is made of two slopes, 3/83/8 and 2/52/5, and the two figures differ in area by exactly one square unit.

Difference of squares

Definition For all real numbers xx and yy,

x2−y2=(x−y)(x+y).x^2 - y^2 = (x - y)(x + y).

Algebra proves it in every case, since

(x−y)(x+y)=x2+xy−yx−y2=x2−y2.\begin{aligned} &(x - y)(x + y) \\[0.4em] &\quad = x^2 + xy - yx - y^2 \\[0.4em] &\quad = x^2 - y^2. \end{aligned}

When x≥y≥0x \ge y \ge 0 there is also an area proof. From a square of side xx remove a square of side yy at one corner, which leaves an L-shaped region of area x2−y2x^2 - y^2. Cut that region into a rectangle x−yx - y wide and xx tall and a rectangle yy wide and x−yx - y tall. Turn the second piece a quarter turn, so that it is x−yx - y wide and yy tall, and set it on top of the first. The two pieces now form one rectangle x−yx - y wide and x+yx + y tall, and cutting and moving did not change the area. With x=nx = n and y=n−1y = n - 1 the identity gives n2−(n−1)2=2n−1n^2 - (n - 1)^2 = 2n - 1, which is the newest layer of the dot picture.

In plain words Taking a small square out of the corner of a big square leaves an L-shape, and the L-shape can be cut and rearranged into a rectangle whose sides are the difference and the sum of the two side lengths.

Example Take x=7x = 7 and y=3y = 3. Removing the 33 by 33 square from the 77 by 77 square leaves 49−9=4049 - 9 = 40 square units, in a 44 by 77 piece of area 2828 and a 33 by 44 piece of area 1212. Turned and stacked, they form a 44 by 1010 rectangle, and 4×10=404 \times 10 = 40. With x=10x = 10 and y=9y = 9 the identity gives 102−92=1×19=1910^2 - 9^2 = 1 \times 19 = 19, the newest layer of a 1010 by 1010 square of dots. With x=50x = 50 and y=1y = 1 it helps with mental arithmetic,

51×49=502−12=2499.\begin{aligned} 51 \times 49 &= 50^2 - 1^2 \\[0.4em] &= 2499. \end{aligned}

With x=3x = 3 and y=7y = 7 the area picture cannot be drawn, because the square of side 77 does not fit inside the square of side 33, but the algebra still holds, since 9−49=−409 - 49 = -40 and (3−7)(3+7)=−40(3 - 7)(3 + 7) = -40.

Check yourself

  1. Find 1+3+5+⋯+991 + 3 + 5 + \cdots + 99. How many terms does the sum have?
Show the answer

The nnth odd number is 2n−12n - 1, and 2n−1=992n - 1 = 99 gives n=50n = 50. So the sum has 5050 terms and equals 502=250050^2 = 2500. A common slip is to use the last term, 9999, as nn, which would give 992=980199^2 = 9801. A quick check pairs the first and last terms, 1+99=3+97=⋯=1001 + 99 = 3 + 97 = \cdots = 100, and the 5050 terms make 2525 such pairs, so the sum is 25×100=250025 \times 100 = 2500.

  1. Change the rule and add the even numbers instead, 2+4+⋯+2n2 + 4 + \cdots + 2n. Are the totals still square numbers? What shape do the dots make?
Show the answer

The totals are 2,6,12,20,30,…2, 6, 12, 20, 30, \ldots, and none of them is a square number. They equal n(n+1)n(n + 1), the number of dots in a rectangle of nn rows and n+1n + 1 columns. To grow a rectangle of n−1n - 1 rows and nn columns into one of nn rows and n+1n + 1 columns, add a row of n+1n + 1 dots across the top and a column of nn dots down the right side. They share the top right dot, so the new border has (n+1)+n−1=2n(n + 1) + n - 1 = 2n dots, which is the nnth even number. The rectangle is never a square, because

n2<n(n+1)<(n+1)2n^2 < n(n + 1) < (n + 1)^2

for every n≥1n \ge 1, so n(n+1)n(n + 1) lies strictly between two neighboring square numbers. Halving the totals also gives 1+2+⋯+n=n(n+1)/21 + 2 + \cdots + n = n(n + 1)/2.

  1. Use both identities on this page to find 21+23+25+⋯+3921 + 23 + 25 + \cdots + 39 without adding term by term.
Show the answer

Since 21=2⋅11−121 = 2 \cdot 11 - 1 and 39=2⋅20−139 = 2 \cdot 20 - 1, the sum runs from the 1111th to the 2020th odd number. It is the sum of the first 2020 odd numbers minus the sum of the first 1010, so it equals

202−102=(20−10)(20+10)=10×30=300.\begin{aligned} &20^2 - 10^2 \\[0.4em] &\quad = (20 - 10)(20 + 10) \\[0.4em] &\quad = 10 \times 30 = 300. \end{aligned}

In the dot picture these ten odd numbers are the outer ten layers of a 2020 by 2020 square, the L-shaped region left after removing the 1010 by 1010 square in the bottom left corner. Since 20≥10≥020 \ge 10 \ge 0, the area picture applies and rearranges that region into a 1010 by 3030 rectangle. A check by averages agrees, since the ten terms average (21+39)/2=30(21 + 39)/2 = 30 and 10×30=30010 \times 30 = 300.