Planar numbers

This is the first of two notes on Ancient Greek mathematics. Math has always been propelled forward by abstraction, and one of the first abstractions was from geometry (where the idea of quantity is described by measurement) to arithmetic (of abstract numbers which do not measure anything in particular). To the Ancient Greeks, this abstraction was more fresh than it is for us, so they were fascinated by numbers that represented geometric figures.

These include the familiar square numbers n^2 and triangular numbers 1+\cdots+n=\frac{n(n+1)}{2} as well as pentagonal and hexagonal numbers and so on:

In the top figures, the polygonal numbers are partitioned into what the Greeks called gnomons (originally a name for an L-shaped carpenter’s tool). The gnomons for triangles have size 1,2,3,4,\ldots, for squares have size 1,3,5,7,\ldots, and in general the gnomons are an arithmetic sequence starting with 1, with common difference n-1. So the n-gonal numbers, the gnomons are 1,1+(n-1),1+2(n-1),1+3(n-1),\ldots. Therefore,

\displaystyle k^\text{th}\text{ }n\text{-gonal number}=\sum_{i=0}^{k-1}1+i(n-1).

Definition. A planar number is a whole number represented as either a polygonal number or a rectangle (product of two integers \geq 2).

In modern terms, a planar number is not a number itself, but rather a number together with a geometric representation. For example, 28 can be represented as a planar number in five ways: as rectangles 2\times 14 and 4\times 7, the seventh triangular number, the fourth pentagonal number, or the first 28-gonal number.

Theorem. There are infinitely many numbers which are both triangular and square:

\displaystyle 1,36,1225,41616,\ldots

This famous fact is proven using Pell equations (see here).

Problem 1. Are there numbers which are both triangular and pentagonal? Square and pentagonal? a-gonal and b-gonal? If there is one such number, are there always infinitely many?

Problem 2. Every positive integer n is trivially polygonal because it is the first n-gonal number. What proportion of positive integers are non-trivially polygonal?

These problems range a lot in difficulty. Problem 2 is one that I don’t know the answer to. If you can answer this or one of my other hard problems, please let me know!

Triangulations of polygons

In geometry, every n-gon can be triangulated by n-2 triangles. (This is an important fact — we can use it to calculate the sum of the angles in a polygon!) Miraculously, the same is true in arithmetic. Every n-gonal number is a sum of n-2 triangular numbers!

In general, the k^\text{th}\text{ }n-gonal number is T_k+(n-3)T_{k-1}. This is also k+(n-2)T_{k-1}, which can be expressed in modern notation as \binom{k}{1}+(n-2)\binom{k}{2}.

Modern mathematicians have tended to view polygonal numbers as an idle curiosity, or a part of recreational math. But they are actually the two-dimensional case of the beautiful and useful theory of integer-valued polynomials.

Let’s start by reasoning like the Ancient Greeks. If polygonal numbers can be built out of triangular numbers just as all polygons can be triangulated, then since all polyhedra can be partitioned into tetrahedra, it stands to reason that polyhedral numbers can be built out of tetrahedral numbers 1+3+6+\cdots+T_{n-1}=\binom{n}{3}. And more generally, we might guess that d-dimensional numbers can be built from the d-simplex numbers \binom{n}{d}. In a sense, this would be exactly right! Let me explain.

A polynomial f(x) is integer-valued (see here) if f(n) is an integer for all integers n. For example, \frac{1}{2}n^2+\frac{1}{2}n is integer-valued even though it doesn’t have integer coefficients.

Theorem. A degree d polynomial f(x) is integer-valued if and only if there are integers a_0,\ldots,a_d with a_d\neq 0 such that \displaystyle f(x)=a_d\binom{x}{d}+\cdots+a_1\binom{x}{1}+a_0\binom{x}{0}, where \binom{x}{k}=\frac{x(x-1)(x-2)\cdots(x-k+1)}{k!}. The integers a_0,\ldots,a_d are unique.

Example. The quadratic integer-valued polynomials which satisfy f(0)=0 and f(1)=1 are just f(x)=x+n\binom{x}{2}, which precisely represent the polygonal numbers.

Example. Since n^3 is integer-valued, we know we can express n^3=6\binom{n}{3}+6\binom{n}{2}+\binom{n}{1}. Another useful expression is n^3=\binom{n+2}{3}+4\binom{n+1}{3}+\binom{n}{3}. Therefore, cube numbers are sums of six tetrahedral numbers, just as geometric cubes can be partitioned into six tetrahedra. If the n^\text{th} tetrahedral number is \text{Tet}_n=\binom{n+2}{3}, then n^3=\text{Tet}_n+4\text{Tet}_{n-1}+\text{Tet}_{n-2}.

Problem 3. For any nonnegative integers a_1,\ldots,a_k, the functions f(n)=a_1\binom{n+d-1}{d}+a_2\binom{n+d-2}{d}+\cdots+a_k\binom{n+d-k}{d} are sequences of d-dimensional numbers. Express the d-dimensional hypercubes as a sequence of d-dimensional numbers. Which integer-valued polynomials of degree d can be expressed as sequences of d-dimensional numbers?

For all you who believe that math is only interesting if it is deep, integer-valued polynomials are also connected to some very modern mathematics via algebraic topology. The K-theory of infinite-dimensional complex projective space K_0(\mathbb{C}P^\infty) is the ring of integer-valued polynomials. If this makes any sense to you, then see if you can describe the multiplicative structure of the ring. In simple language:

Problem 4. The product of two integer-valued polynomials is an integer-valued polynomial. If the original polynomials are expressed in the form a_n\binom{x}{n}+\cdots+a_1\binom{x}{1}+a_0\binom{x}{0}, how can you express their product in this form? For example, find the coefficients:

\displaystyle \left(\binom{x}{3}-2\binom{x}{2}-1\right)\left(\binom{x}{2}-3\binom{x}{1}+2\right)=c_6\binom{x}{6}+\cdots+c_1\binom{x}{1}+c_0\binom{x}{0}?

An oblong oddity

As we have said, the triangular numbers \binom{n}{2}=1,3,6,10,\ldots are the building blocks of two-dimensional numbers, in the same way that all two-dimensional polygons and surfaces can be triangulated. Moving to three dimensions, the tetrahedral numbers \binom{n}{3}=1,4,10,20,\ldots should be the building blocks of three-dimensional numbers, whatever those are, and so on. (Yes, the building blocks of geometric numbers and integer-valued polynomials are the terms of Pascal’s triangle!)

So in the same way, the counting numbers \binom{n}{1}=1,2,3,4,\ldots should be regarded as the basic one-dimensional numbers. Now here is a very familiar one-dimensional definition and its two-dimensional analogue:

Definition. A whole number is odd if it is the sum of two consecutive counting numbers or even if it is the sum of a counting number with itself. (Side note: Since the Greeks started counting at 1, this definition has the curious side effect that 1 is neither even nor odd, although they did say that it was odd in a more abstract sense, ‘odd in potential’.)

Two-dimensional analogue. The sum of two consecutive triangular numbers is a perfect square, while the sum of a triangular number with itself is an oblong number, which is a product of two consecutive whole numbers n(n+1) and therefore a rectangular (planar) number.

According to the dualism of the ancient Pythagoreans (who were philosophers and mystics as well as mathematicians), this made the sequences of square and odd numbers related and opposed to the sequences of oblong and even numbers. (The square and odd numbers had a positive connotation, and the oblong and even numbers a negative connotation.)

There is yet another connection between odd and square numbers, even and oblong numbers. The squares are the sums of the first odds, and the oblongs are the sums of the first evens:

\displaystyle n^2=1+3+5+\cdots+(2n-1),

\displaystyle n(n+1)=2+4+6+\cdots+2n.

The Greeks would have said that the odds are the gnomons of the square numbers, and the evens are the gnomons of the oblong numbers! So what happens in three dimensions? The analogue of the (positive) odd and square numbers are the square pyramidal numbers \displaystyle \binom{n+2}{3}+\binom{n+1}{3}=\frac{n(n+1)(2n+1)}{6}, and just as the odds are gnomons of the square numbers, so the squares are gnomons of the square pyramidal numbers. That is, \displaystyle 1^2+\cdots+n^2=\frac{n(n+1)(2n+1)}{6}, and so we see that all these classic facts about sums are really about 2D and 3D numbers. For example, the sum of squares formula is the algebraic version of the decomposition of a square pyramid into two tetrahedra.

Let’s examine this more closely. We have

  • odd numbers \binom{n}{1}+\binom{n-1}{1},
  • square numbers \binom{n+1}{2}+\binom{n}{2},
  • square pyramidal numbers \binom{n+2}{3}+\binom{n+1}{3},

and so the fact that odds are gnomons of squares and squares are gnomons of square pyramids can be expressed \displaystyle \sum_{k=1}^{n}\binom{k}{1}+\binom{k-1}{1}=\binom{n+1}{2}+\binom{n}{2} and \displaystyle \sum_{k=1}^{n}\binom{k+1}{2}+\binom{k}{2}=\binom{n+2}{3}+\binom{n+1}{3}. These formulas are no accident; they are examples of the:

Hockeystick Identity \displaystyle \sum_{k=d}^{n}\binom{k}{d}=\binom{n+1}{d+1}

So how is any of this useful? Suppose we want to sum a polynomial, like \sum_{k=1}^{n}k^3. By the theory of integer-valued polynomials, we can express the polynomial as a sum of binomial coefficients, k^3=6\binom{k}{3}+6\binom{k}{2}+\binom{k}{1} or \binom{k+2}{3}+4\binom{k+1}{3}+\binom{k}{3}. Then we can use the Hockeystick Identity to sum instantly! \displaystyle \sum_{k=1}^{n}k^3=\sum_{k=1}^{n}6\binom{k}{3}+6\binom{k}{2}+\binom{k}{1}=6\binom{n+1}{4}+6\binom{n+1}{3}+\binom{n+1}{2}, which is \frac{n^2(n+1)^2}{4}. Alternatively, since a cube is a sum of six tetrahedra n^3=\binom{n+2}{3}+4\binom{n+1}{3}+\binom{n}{3}, then \displaystyle \sum_{k=1}^{n}k^3=\binom{n+3}{4}+4\binom{n+2}{4}+\binom{n+1}{4}. Geometrically, since a cube is a sum of six tetrahedra, a 4D cubical simplex is a sum of six 4D-simplices.

Problem 5. Find the coefficients \displaystyle \sum_{k=1}^{n-1}k^d=a_{d+1}\binom{n}{d+1}+a_d\binom{n}{d}+\cdots+a_1\binom{n}{1}+a_0\binom{n}{0}.

We will end with the answer to this problem. It is enough to express n^d in terms of binomial coefficients. It turns out this can be done in terms of the Stirling numbers of the second kind (see here): n^d=\sum_{i=0}^{d}i!\genfrac\{\}{0pt}{1}{d}{i}\binom{n}{i}. Therefore,

\displaystyle \sum_{k=1}^{n-1}k^d=\sum_{i=0}^{d}i!\genfrac\{\}{0pt}{0}{d}{i}\binom{n-1}{i+1}=d!\genfrac\{\}{0pt}{0}{d}{d}\binom{n}{d+1}+\cdots+\genfrac\{\}{0pt}{0}{d}{1}\binom{n}{2}+\genfrac\{\}{0pt}{0}{d}{0}\binom{n}{1}

1 thought on “Planar numbers

  1. […] is my second note on Ancient Greek mathematics, following last year’s post on planar numbers. At the time, I had just read Introduction to Arithmetic by Nicomachus, written around 100 AD. I […]

    Like

Leave a comment