Dirichlet Series of Figurate Numbers and Riemann Zeta Functions
In the summer of this winterless year in Lima, during a geometry seminar at the Instituto de Matemática y Ciencias Afines, I was thinking about what else to develop with my library for working with figurate numbers, figuratenum, totally inspired by the book Figurate Numbers by Elena Deza and Michel Deza (2012).
By March, I had brought something analytic about figurate numbers to discuss with some professors and listeners, the generating functions with enhanced phase portraits (modulus lines too). Installing my library from PyPI is done with
pip install figuratenum[figurate-viz]
figuratenumcurrently has documentation and a list of errata for the book. Take a look here
Before moving on, I want to put in context that, unlike others I’ve written, this one is much more classical and conservative in its methods and ideas.
Overview
The first will focus on anecdotes and the development of ideas, while the second will delve into the more mathematically interesting aspects.
I’ll develop a particular case of generalized Dirichlet series; there will be three pretty images and the anecdotes that led me to these ideas, and I’ll also link my first contribution to OEIS. Of course, I’ll include some essential propositions and their proofs.
Regarding the pictures, a rather beautiful analytic object available in version 3.0.0 of figuratenum is the ordinary generating function of these sequences in the style of Wegert (2012). In the image below, I define the one for the generalized triangular numbers . The code needed to reproduce it is extremely short.
from figuratenum.figurate_viz import ComplexViz
c = ComplexViz(resolution=1200, brightness=0.6)
c.visualize_plane(
"generalized_mgonal", m=3,
cmap_color="tab20b",
xlim=(-3.85, 4),
ylim=(-1.8, 1.8),
)

Prelude
An announcement shared by IMCA said there would be a single seminar talk, given by Prof. Andrés Chirre, on Bounding partial sums of the Möbius function , at bottom something related to the Riemann hypothesis, on February 26 in the main lecture hall of IMCA. I decided to go practically at the last minute that I found out. So I started reading about this Möbius function; I already knew it from elementary number theory, and it’s about divisibility.
An aside on recent progress on the zeros of zeta
A brief aside here. Perhaps many people in Peru would be happy to know that a 2018 paper by Andrés Chirre [GdL20] is cited in an August 2026 article written with the assistance of AI by Levent Alpöge (a former doctoral student of Manjul Bhargava) and Ralph Furman, in which they prove unconditionally that
where denotes the number of simple zeros on the critical line with imaginary parts between and , while counts all nontrivial zeros in the same interval, but with multiplicity.
On November 20, Levent Alpöge again said he had formally proved, in a brutal amount of Lean code (17 million lines of code), the hypothesis in this open remark.pdf, and on November 21 this announcement came out on the blog of Lean itself.
Alpha version of figuratenum
Once I decided to go listen to the talk, I wondered whether I could also study the cumulative sums of the Möbius function for figurate numbers and add something to figuratenum. In short, something as simple as this:
The thing is, I implemented that function in a very preliminary version, without thinking about optimization, with the sole goal of discussing it with Chirre the next day, so it isn’t exposed in the main API of the 3.0.0a - February 25 version of my library.

For example, unoptimized, it took my AMD computer 22m 2s 41ms to compute the first terms under the Mertens function that you see in the image for the truncated cubic numbers .
Also, some other sequences compute faster with more terms, you can check this earlier field note on my blog (I hope I haven’t gotten the count wrong in this present note).
In the PDF I emailed him after the talk, I showed him several results that I haven’t formalized yet, but I can say that for some figurate numbers the cumulative sum is constant or bounded, owing to their purely arithmetic properties, which are easily deduced. However, many others show a more chaotic behavior and the bounds remain to be established.
The day of the talk
He told those of us present about the work he had been doing together with Harald Helfgott (known for proving the weak Goldbach conjecture), developing an analytic method of their own from scratch, because there were already problems with relying on numerical values from old articles that turned out to be miscalculated when revised over time.
A word on the that appears in the expression above. Very loosely speaking, in that approach of Chirre and Helfgott one can say that it provides an explicit formula for systematically improving existing bounds as more extensive computer-assisted computations rigorously verify that the zeros keep appearing where expected, that is, as the height up to which this is verified grows.
Moving on. At the end of his talk, which was extremely exciting, going from one end of the blackboard to the other with enthusiastic gestures, I approached to ask him a few questions about the kind of zeta functions of figurate numbers that I had written the day before in a great hurry.
Although I had never been interested in the Riemann zeta function, except as general knowledge from the real harmonic series and the harmonic numbers , I then imagined a sort of figurate zeta
The difference with the classical zeta, where presented linear growth, is that with figurate numbers the growth is quadratic, cubic, or polynomial depending on the geometric dimension .
The series and the document I didn’t print
The next natural interest I had was to ask about another kind of associated complex function, one open to analytic interpretation. Next to Andrés Chirre, there was also Professor Oswaldo Velásquez. That day I slept very little, because I was developing figuratenum and uploading the library to PyPI in alpha version, making sure of the tests, and writing up the new material of the topic for the document (I’ll mention it again in a moment).
I mentioned the idea that generating functions had already been studied, and he immediately told me that maybe I could study Dirichlet series. He wrote on the blackboard and the analytic things I could study. And this is what I’m going to develop in this note.
As an anecdote, that same day, I went to print the PDF of the file I had written, but the printer’s USB, halfway down the avenue on my way to catch the bus, didn’t recognize it and couldn’t read it, so I printed nothing. Yes, a series of noes. So I only went to the talk.
As soon as I got back, I emailed the file I was going to hand to Chirre in person, and I received the suggestion to start on this topic with Apostol’s book on Analytic Number Theory. From it I’ll draw the more general space of Dirichlet series, together with what I usually do, which is to try to see things with a pinch of algebra.
What is a figurate number
Since I need to give an isomorphism, I have to begin with what a figurate number is for me. Plainly, it is a polynomial , whose degree is associated with the dimension in which the geometric notion of the arrangement of its points lives. Namely, I’ll distinguish between planar figurate numbers (), spatial ones for , and multidimensional ones for . In particular, if
each polynomial defines a polynomial function
I’ll call (classical) figurate numbers the sequence induced by the restriction of , such that that is,
Likewise, I’ll call generalized figurate numbers the bilateral sequence induced by , expressed as
provided that it satisfies . In the first case, I’ll require the sequences to have a geometric meaning; in the second, by extension, I’ll admit an algebraic interpretation. The latter I’ll leave for another time.
One of the most important properties of the classical figurate numbers is the following
. The classical figurate numbers, thanks to their geometric interpretation as nested configurations of points, are strictly increasing sequences, . The proof is left to whoever made it this far.
The generalized Dirichlet series
As I showed, it’s common for figurate numbers to live in the space of sequences and to be represented as such in a geometric perspective. Now I go with Apostol; what I’ll address is a very particular case of the general Dirichlet series, for sequences where
are the figurate numbers. Now I consider the vector space of polynomials with rational coefficients (for each , the polynomials of degree at most form a subspace) and the function
where represents the space of functions generated by the generalized Dirichlet series corresponding to the polynomials of .
For each I define
with , whenever there is convergence. I also require, as with figurate numbers, that be a strictly increasing real sequence (tending to ). Why so much generality, you ask? I think the generality will be interesting for later studies. For today, I’ll restrict the exponent to the sequence given by the integral
Many of the ideas I’ve been thinking about lately are born as layers of logarithms, of structures and patterns that are multiplicative.
Thus, the isomorphism of vector spaces that I’ll take will be , where
(as meromorphic functions on , after analytic continuation). Well, to prove how we get here, it will be enough to go step by step.
. By definition the series is naturally represented as (the other way around from the direct, naive zeta, and with non-constant coefficients) . From here I substitute according to the formula I wrote above
which reduces, by simple algebraic manipulation, to the two summations
I recognize the infinite sum as a zeta function, but shifted by an integer. Hence, we have arrived at a rational linear combination of shifted zeta functions of the form
with . More formally, a basis of is given by the monomials and the basis of the shifted zetas is
Indeed, the zeta functions are linearly independent over , because each one has a simple pole at a distinct point , with residue equal to . By the function that I defined above, I have
for all . Then, the map that I set up sends to , which yields the isomorphism . This proves it.
And naturally we get this corollary, enough to understand the figurate picture.
. Every figurate number determines, through , a finite linear combination of shifted zeta functions with rational coefficients.
. A consequence of the linearity of and of the representation of in the canonical basis of .
The Dirichlet series of the polygonal numbers and values with Bernoulli
According to Deza and Deza (p. 21), the planar () polygonal numbers with sides are defined through the sequence associated with the function
But for the construction of the isomorphism it suits me to separate the coefficients . It is a polynomial with no constant term. Taking the infinite series, that is, the Dirichlet series with (natural logarithm), the one associated with is
To begin with, it converges absolutely for . Likewise, by the same properties of zeta, it is meromorphic on with simple poles at and (for ).
To compute the triangular numbers, or , with figuratenum, it’s enough to do
from figuratenum import FigurateNum
seq = FigurateNum().polygonal(m=3)
print([next(seq) for _ in range(100)])
# [1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...]
Well, I’m still preparing, in a separate note, a couple of ideas from my personal view of the Bernoulli numbers; it will still take some time.
The only thing I’ll mention for what comes in this note is that the zeta function is related, on the one hand, to the prime numbers through what is the Euler product , where Yes, at some point I’ll also have to rewrite this object for myself.
And, on the other hand, to special values at certain integer points. The Riemann hypothesis, for instance, has special interest on a line called critical, (there is also the critical band in music, just kidding, it’s simply a band). The story is highly well known.
I figured that for the figurate numbers, in a first stage it is enough for what comes next to take the trivial values; that is,
The values at the points , where is a natural number or zero.
But as you surely think, how do we compute them one by one? Well, there are the Bernoulli numbers. To compute each in the zeta function, the following identity applies
You’ll find the proof in the base reference (a gorgeous book) of this note (p. 72). Also, I want to clarify that in the following notes I’ll keep
the convention of the positive rational (see the fabulous article by Peter H. N. Luschny). With my associative way of thinking, this reminded me quite a bit of what is known as the dot in Western musical notation of durations.
In general, for any I have the parametrization in the following table that I made with a bit of symbolic algebra in Python (I’ll upload how I did it later). But first, an essential example. At I got
which is indeed defined, since the shifts turn the unit point into the values and
The first thing I noticed is that there are rather long fractions (perhaps later I can use height functions , for in lowest terms) as it goes on. Second, it could be rewritten more succinctly. For the moment, this is enough.
Great, I’ll directly work out the first three examples, for polygonal numbers with sides, to make this excerpt clearer.
Triangular zetas and successive terms
With the triangular numbers, is the linear combination of shifted zetas
A pair of simple poles at and , as I said. From the table just above, I simply substitute and get the following special values.
What stands out here is that values repeat in pairs, for example or . So we claim,
. Let be odd, then = .
. Practice.
Square zeta and multiplicativity
Moving on. With the square numbers (a good reason to call them that), there is a single pole at the point . Their Dirichlet series reduces to the simplest of all the figurate families,
But I want to step away from the topic a little here, because of this matter. Unlike other figurate numbers, the hypercubic numbers , with here, are in fact completely multiplicative functions in the sense of arithmetic functions , that is
for all .
. The hypercubic numbers with are completely multiplicative functions, and hence, for , they are also multiplicative.
In fact, I’ve been thinking that the figurate numbers are rational linear combinations of hypercubic numbers (together with the powers and ).
This highlighted property is what makes it possible to define it with a single Euler product, , which I mentioned above. Well, the table with looks like this.
What is immediate is that the even values of the square zeta vanish.
. Let , then .
. Routine exercise for agility.
Pentagonal zetas and their secrets
With the pentagonal numbers I close this first explicit note on Dirichlet series. I’ll linger here to say that the generalized pentagonal numbers for have many secrets and relations with other ideas.
I already mentioned, very much in passing, in the documentation that they appear in partition theory, in Euler’s pentagonal number theorem..
On the other hand, a few days ago I also made my
first contribution to the OEIS, the sequence A054602, which was an integral identity using , which I’ll discuss in detail in a note (you can see it in the Spanish resources section).
from figuratenum import FigurateNum
seq = FigurateNum().generalized_mgonal(m=5)
print([next(seq) for _ in range(100)])
# [0, 1, 5, 12, 22, 35, 51, 70, 92, 117, 145,
# 176, 210, 247, 287, 330, 376, 425, 477, 532, ...]
The first special values here have a beautiful property.
. Let , then
. Homework for Sunday.
Phase portrait of the pentagonal zeta and nontrivial zeros
One of the most beautiful activities, artistically speaking, that one can do with the computer (or by hand if you’re a painter) is the representation of in the complex plane, something I’ve postponed until this moment. In part, because I haven’t implemented it completely in figuratenum yet and I still have to decide its structure.
I made the plot with cplot and a couple of lines of Python code. The tricky part here is calibrating to taste the limits of the part and the part. In the end I made it square, as funny as that sounds given what I said.
If I imagine on the image, separately, for each term, that for the nontrivial zeros would lie on the line and on the line for (assuming the Riemann hypothesis). But, at bottom, for a point to be a nontrivial zero of it must satisfy the equation
in other words, a cancellation must occur between both zeta terms.
A Diophantine-style equation
Naturally, with the tables given, the first thing is to ask ourselves
do these Bernoullian values of the zetas show some regularity or arithmetic relation that can be patterned among different families?
Likewise, I also thought about the potion of the functional equation for the triangulars (it looks slightly complicated)
In it, the gamma function appears. As for the logarithm I used as the exponent , as I said above, it is born from the integral of a hyperbola or from the differential equation that comes out by symbolic analogy, (you can read my note on the logarithm in Spanish).
In fact, since we wrote an equation above, and since I’ve been playing with these functions for some time now, it came to me very naturally (while I was coming back from buying at the bakery, and I think also because of what I did with elliptic curves ) to think of a kind of Diophantine equation in integers of zeta functions, which I make explicit below. To put the penultimate touch on this note, I propose the following.
. Let and be two figurate numbers of dimensions and let their corresponding Dirichlet series be . I’ll call the Diophantine equation of figurate Dirichlet series the equation
whose solutions live in or are complex, .
From this definition I deduce the base case with pure polygonal numbers.
. Let . Then is equivalent to the zeta function equation
. By the definition of the series above, if we equate both series and group the terms we get . Since and are different, it follows that . Which proves it and, as a bonus, exemplifies the equational idea.
Contents
