**Question:** What is the connection between Ramanujan’s number 1729 and Fermat’s Last Theorem? For the answer, read on.

The story of how Srinivasa Ramanujan responded to G. H. Hardy’s comment on the number of a taxi is familiar to all mathematicians. With the recent appearance of the film *The Man who Knew Infinity*, this curious incident is now more widely known.

Visiting Ramanujan in hospital, Hardy remarked that the number of the taxi he had taken was 1729, which he thought to be rather dull. Ramanujan replied “No, it is a very interesting number; it is the smallest number expressible as the sum of two cubes in two different ways.”

It is a trivial matter to show that

But how could Ramanujan possibly have known this abstruse fact? This question has mystified mathematicians for almost a century.

**Diophantine Equations**

At first glance, it is remarkable that Ramanujan knew the properties of the number 1729. Material recently uncovered in the library of Trinity College, Cambridge shows that the story was not simply a charming tale dreamed up by Hardy. Ramanujan came upon the number 1729 during a search for integer “near-solutions” of the diophantine equation

Pierre Fermat had claimed in 1637 an extraordinary proof that the equation

has no non-trivial solutions in integers for any integer . This problem has a long and fascinating history, leading to the successful proof by Andrew Wiles published in the May 1995 issue of the *Annals of Mathematics*.

The general Fermat problem taxed the minds of some of the greatest mathematicians for centuries. The special case of the Fermat equation for was proved by Leonhard Euler in 1770. Euler used the method of infinite descent.

In a recent paper (Ono and Trebat-Leder, 2015) on arXiv.org, Prof Ken Ono of Emory University in Atlanta, Georgia, pointed out that Ramanujan had been studying Euler’s diophantine equation

and had come across a solution involving the number 1729 in this context.

**[Aside:** Ramanujan’s work foreshadowed deep structures and phenomena that are of fundamental importance in modern algebraic geometry and number theory. In particular, he discovered a geometric structure called a K3 surface. K3 surfaces are complex smooth minimal complete surfaces that have a role in string theory. For a sample, see the Figure at the head of this post.]

In his Lost Notebook (§8.5 of Andrews and Berndt, 2013), Ramanujan presented a stunning method for generating an infinite family of solutions to (1). His method involved the expansion of three rational functions at zero and at infinity. The integer 1729 emerges from this process.

As is clear from the formulas in the Figure above, Ramanujan defined three rational functions and expanded them about the origin in powers of and about infinity in powers of . The functions and -expansions are

The expansions in are

(the indices follow Ramanujan’s choice). The first few coefficients and are listed in Table 1.

Ramanujan concluded that, for each set of coefficients, the following relations hold:

We see that the values , and in the first row correspond to Ramanujan’s number 1729.

The expression of 1729 as two different sums of cubes is shown, in Ramanujan’s own handwriting, at the bottom of the document reproduced above. This is just a single member of an infinite family of solutions.

The page from the Lost Notebook resolves the question of how Ramanujan knew about the number 1729. But it raises a much greater question: how did he come upon the three extraordinary rational functions that are presented in the notebook? That is a question for another day.

* * *

An earlier post on Ramanujan’s Lost Notebook is here.

**Sources**

Andrews, G. E. and B. C. Berndt, 2013: *Ramanujan’s Lost Notebook, Part IV*, Springer, New York, 2013.

Freeman L., 2005: Fermat’s Last Theorem: Proof for n = 3. Blog presenting the story of Fermat’s Last Theorem and Wiles’ proof in an accessible manner.

Ono, Ken and Sarah Trebat-Leder, 2015: The 1729 K3 Surface. arXiv:1510.00735v4 [math.NT] 19 Oct 2015.

Silverman, Joseph H., 1993: Taxicabs and Sums of Two Cubes. *Amer. Math. Mon*., **100**, 331-340.