Squares as Sums of Odd Numbers, Part 2

Here is the promised geometric visualization of the fact that the $n$th square number is the sum of the first $n$ odd numbers. I hope it may be a bit more enjoyable for readers, who I know are mostly Olly well-wishers rather than math enthusiasts.

I actually developed this visualization between the first and second proofs I shared yesterday. As I knew the proof by induction would probably practically write itself, I got it out of the way first. I then moved on to look at the problem geometrically, hoping to gain insight that I could use to write a more illuminating proof. This geometric approach turned out to be more closely related to the proof by induction than to the second proof I came up with later, though.


Claim: The $n$th square number is the sum of the first $n$ odd numbers.

First of all, how would we represent a square number visually? One way is as a collection of dots arranged in a square, as shown below.

Visualizing Squares

Second, how can we represent an odd number visually? Well, every odd number is one more than an even number, and any even number, being divisible by 2, can be represented as two rows of the same number of dots. Thus, an odd number can be represented as two rows of the same number of dots, plus one more. (Except for 1, which is simply 1 dot.)

Visualizing Odds

Now imagine rearranging each odd number into an L shape as shown below. These L-shaped figures also have two rows of the same number of dots, plus one more.

Rearranging Odds

Next, notice how the series of L-shaped figures representing the odd numbers nest together to form a square.

Nesting Odds

Thus, the claim holds at least up to $n=5$. To draw a square representing the next square number, you would add a row and a column to this square, which you can see would be the same as adding another L-shaped figure representing the next largest odd number. So the claim must hold for each higher $n$ as well.


I also played around with a similar visualization using even numbers. The L-shaped figures representing odd numbers can be adapted to instead represent even numbers by removing the dot in the corner. When you do that, the nested figures look like this:

Nesting Evens

The center diagonal is missing from each square. Since it contains a number of dots equal to the side length of the square, the number of dots left in the $n$th square is $n^2-n$.

Accounting for the fact that the first even number, 2, corresponds to the second square, this leads to the formula

$$\sum_{i=1}^n2i=(n+1)^2-(n+1)=(n+1)[(n+1)-1]=(n+1)(n)\text{.}$$

This is what you would expect given the well known formula for the sum of the first $n$ natural numbers and can also be proven by induction. I also checked the sum of this formula and the one from yesterday. The sum of the first $n$ odd natural numbers plus the sum of the first $n$ even natural numbers should equal the sum of the first $2n$ natural numbers, which it does.

$$n^2+(n+1)(n)=n[n+(n+1)]=n(2n+1)=\frac{2n(2n+1)}{2}$$

Squares as Sums of Odd Numbers, Part 1

Today was a fruitful day for math. I watched more of the Essence of Calculus series, did a couple of pages of algebra review exercises, then started on the book The Joy of X by Steven Strogatz, which I bought earlier in the week. Near the beginning of that book, the author mentions that the $n$th square number is the sum of the first $n$ odd numbers. I stopped reading at that point and went to see if I could prove the claim. I was able to come up with two proofs, as well as a way of visualizing the problem geometrically that led me to a formula for the sum of the first $n$ even numbers. I also checked that the sum of the two formulas yielded the well known one for the sum of the first $n$ natural numbers, which it did.


Proposition:
$$\sum_{i=1}^{n}(2i-1)=n^2\text{ for all }n\in\mathbb{N}\text{.}$$

The proof by induction is easy…

Proof 1 (by induction):

When $n=1$, $\sum_{i=1}^{n}(2i-1)=\sum_{i=1}^{1}(2i-1)=2(1)-1=1=1^2$.

Assume that $\sum_{i=1}^{n-1}(2i-1)=(n-1)^2$.

It follows that $\sum_{i=1}^{n}(2i-1)=\sum_{i=1}^{n-1}(2i-1)+(2n-1)=(n-1)^2+2n-1=$ $(n^2-2n+1)+2n-1=n^2$.

Therefore, by induction, the proposition holds for all $n\in\mathbb{N}$.

Proof 2:

For any $n\in\mathbb{N}$, $\sum_{i=1}^{n}(2i-1)=[2n-1]+[2(n-1)-1]+[2(n-2)-1]+…+[2(1)-1]$.

Since there are $n$ terms in the sum, there are $n$ instances of $-1$.

Thus, $\sum_{i=1}^{n}(2i-1)=2[n+(n-1)+(n-2)+…+1]-n$.

Using the well known formula for the sum of the first $n$ natural numbers, it follows that $\sum_{i=1}^{n}(2i-1)=2[\frac{n(n+1)}{2}]-n=n(n+1)-n=n[(n+1)-1]=n^2$.

Thus, the proposition holds for all $n\in\mathbb{N}$.


Stay tuned tomorrow for a geometric visualization of the problem and the formula for the sum of the first $n$ even numbers.

Video Dreams

Today was busy, and I didn’t find a lot of time for math. I did watch some of the series Essence of Calculus by YouTube math communicator 3Blue1Brown, which was enjoyable. I also played around a bit with tools that might help me make my own math videos someday. That’s something I’d really like to do. As I’ve said elsewhere, for me, math is something to be communicated.

Here’s my favorite of the 3Blue1Brown videos I’ve seen:

I don’t expect to make anything as good as this for a long time, if ever—3Blue1Brown is one of the top math communicators on the Internet—but I find it inspirational (not to mention fascinating in itself).

Practicing Math

I spent my study time today on more algebra review, encompassing both reading and exercises. I also derived the quadratic formula, which was fun.

I don’t have any mathematical insights to share, but I did spend some time thinking about the ways in which doing math is like a sport or perhaps a martial art. For me right now, the most immediate similarities are the importance of practice to any kind of success and the way advanced skills build on more elementary ones. There is also the fact that watching someone do math and doing it oneself are very different experiences. (These are both something students often miss. Teachers usually make math look easy, but when the students try it themselves, they struggle. Rather than concluding that math requires practice, the students conclude that they are just not good at it.) Math is also something that has applications, but is often done for its own sake, something that has a long history through which it has been transmitted from teacher to pupil, and something that formalizes thought as a physical art might formalize movement.

Pertinent Points

Today I continued to work through the exercises in the appendix of my calculus book that provides a review of some concepts from algebra.

One series of problems involved finding the intervals on which various expressions containing variables would be less than or greater than zero. One method to do this that was outlined in the textbook was to find the points at which the expression would be equal to zero, use those to divide the number line into intervals, then test a point from each interval to determine whether the expression was positive or negative on that interval. All the time I was doing this I was thinking, “this is all well and good for expressions that correspond to continuous functions, but what about other types?” (The property of continuous functions that makes this work is the Intermediate Value Theorem, I believe.)

Sure enough, near the end of the series of problems, some expressions appeared that would be discontinuous when interpreted as functions. The answer to my question is that you need to treat each point of discontinuity as a point at which to divide the number line, the same as each point where the expression would equal zero. This was never explained or even hinted at in the text, though, which puzzles me. I don’t think of this text as leaving much for the reader to discover. Maybe there is more than I remembered, though. If so, there may be value in doing all of the exercises.

Squares Again

I’m not sure yet how I’m going to organize my review. So far I’ve been dabbling widely in the materials I have available. Yet I think it would be a good idea for me to mix drills in the calculation-focused subjects I may eventually want to tutor—calculus, analytic geometry, and so on—with review of some more proofs-based math. Otherwise I’m going to feel as if I’m missing half the show.

Today I was reading Chapter Zero by Carol Schumacher, one of my old textbooks, which was written as an introduction to proofs-based math. In its discussion of definitions, it says the following:

[W]e might naively define a square as “a four-sided, equilateral polygon,” but we would quickly see that such a figure need not have right angles. If we are actually only interested in right-angled figures, then we could refine our definition to be “a four-sided, equilateral polygon with four right angles.”

That immediately had me wondering whether, to know that a four-sided, equilateral polygon is a square, one must know the measures of all of its angles. I suspect that one is sufficient. I believe there are no equilateral, four-sided polygons that have one right angle and do not have four right angles. I haven’t sat down to work out a proof yet, though.

Squares as Products of Squares

While watching a video about factoring, it occurred to me that, if n is a square number, then n is also the product of square numbers. This is trivially true, of course, in that n is the product of itself and 1, which is a square. If the root of n is not a prime, though, then n can be expressed as a product of squares in at least one other way. To see why this is, consider 36:

36 = (6)(6) = (3)(2)(3)(2) = (3)(3)(2)(2) = (9)(4)

Given any factorization of the root of n, n can be expressed as the product of the squares of the root’s factors.

This is all pretty obvious, but I thought it was interesting. In the future, I may consider if there is a geometric interpretation of this fact and what light it might shed.1

  1. To do. ↩︎

Take Drugs, Do Math

The end of my time at college was traumatic, and since math was my major, it was inevitably swept up in the trauma. So much so that for the past 15 years I have had clear trauma responses whenever I tried to do math. Initially, I could not access math knowledge at all, as if it were behind a blank wall in my mind. Later, whenever I tried to think about it, I had shortness of breath, pounding heart, and shaking. Those symptoms gradually eased and haven’t troubled me for a couple of years. Math still caused me anxiety, however; I struggled to concentrate and ended up exhausted by even short periods of review.

Earlier this week, in consultation with my psychiatrist, I started using CBD-infused gummies while working on math. The results have been striking. Today I was able to study for almost two hours without ill effect. I think I may finally be in a position where I can reengage with the subject I loved so much.