Explain 13 + 23 + 33 + ... + n3 = (1 + 2 + 3 + ... + n)2
Area of the small squares
The width of the smaller squares along the diagonal (top right to bottom left) is the number of itself. For examples the first square has the width of 1, the second square has the width of 2. Which means the area of the small square is (it's number)
Area of the large square
The perimeter of the large square equals the sum of smaller squares' perimeter along the diagonal. Because the large square's length of each side is the combine of the small square's side length.
the label on the smaller squares along the diagonal is their width
which really means that the area of the larger square is (1 + 2 + ... + n)
Now take a look again at the smaller squares and the top and left part (darker color than the diagonal squares) to it.
Look at the area of the darker part and the lighter part, do you find the relationship between them?
The first square has the area of one with 0 darker area that on it's left and top. The second square has the area of 4, and the nearby darker area is also 4. The third square has the area of 9, and the nearby darker area is 18...
| lighter area | darker area (to it's left and top) | lighter area + darker area | (lighter area + darker area)/(lighter area) |
|---|---|---|---|
| 1 | 0 | 1 | 1 |
| 4 | 4 | 8 | 2 |
| 9 | 18 | 27 | 3 |
| 16 | 48 | 64 | 4 |
| 25 | 100 | 125 | 5 |
| 36 | 180 | 216 | 6 |
As you can see, the lighter area is (it's number)
Square and it's recursion
The total area is the sum of the small square, the area to it's left and top, and last total area.
How are they equal
Let's say we have a square that has 6 smaller squares along the diagonal. It is the same as the graph representing on the right 1
Obviously that the graph is a square. It is easy to tell a area of square if you know the width. You combine the width of the smaller squares along the diagonal as I said and get the value of (1 + 2 + 3 + 4 + 5 + 6). And you times itself, the total area is (1 + 2 + 3 + 4 + 5 + 6)
The area of square remains the same, meaning that 1
The example is suitable for all the cases that is 1
Draw this square
Using HTML+Js+Css+svg
Using HTML+Js+Css+Canvas
Simplifing the quation
1
= (1 + 2 + 3 + ... + n)
= ((1 + n)n / 2)
Why step 2?
let's set n = 4, transform (1 + 2 + 3 + 4)
What do you notice?
The numbers of round pattern is 1 + 2 + 3 + 4 = 10. Can we find the result by using another way?
The formula of getting the area of trapezoid is (top length + bottom length) * height / 2, in this case the top length is 1 and height always remains botton length.
This gives the equation of (1 + 4) * 4 / 2, also the result of 10. Now we replace 4 to n and get the expression of (1 + n)n / 2.
Now stick the formula fx"=((A2+1)*A2/2)^2" into Excel and check the answers.
1
1
1
1