This book would not have been possible without the help and involvement of many people. In particular I would like to thank Andrew Wiles, who went out of his way to give long and detailed interviews during a time of intense pressure. During my seven years as a science journalist I have never met anybody with a greater level of passion and commitment to their subject, and I am eternally grateful that Professor Wiles was prepared to share his story with me.

  I would also like to thank the other mathematicians who helped me in the writing of this book and who allowed me to interview them at length. Some of them have been deeply involved in tackling Fermat’s Last Theorem, while others were witnesses to the historic events of the last forty years. The hours I spent quizzing and chatting with them were enormously enjoyable and I appreciate their patience and enthusiam while explaining so many beautiful mathematical concepts to me. In particular I would like to thank John Coates, John Conway, Nick Katz, Barry Mazur, Ken Ribet, Peter Sarnak, Goro Shimura and Richard Taylor.

  I have tried to illustrate this book with as many portraits as possible to give the reader a better sense of the characters involved in the story of Fermat’s Last Theorem. Various libraries and archives have gone out of their way to help me, and in particular I would like to thank Susan Oakes of the London Mathematical Society, Sandra Cumming of the Royal Society and Ian Stewart of Warwick University. I am also grateful to Jacquelyn Savani of Princeton University, Duncan McAngus, Jeremy Gray, Paul Balister and the Isaac Newton Institute for their help in finding research material. Thanks also go to Patrick Walsh, Christopher Potter, Bernadette Alves, Sanjida O’Connell and my parents for their comments and support throughout the last year.

  Finally, many of the interviews quoted in this book were obtained while I was working on a television documentary on the subject of Fermat’s Last Theorem. I would like to thank the BBC for allowing me to use this material, and in particular I owe a debt of gratitude to John Lynch, who worked with me on the documentary, and who helped to inspire my interest in the subject.

  Simon Singh

  Thakarki, Phagwara

  1997

  1

  ‘I Think I’ll Stop Here’

  Archimedes will be remembered when Aeschylus is forgotten, because languages die and mathematical ideas do not. ‘Immortality’ may be a silly word, but probably a mathematician has the best chance of whatever it may mean.

  G.H. Hardy

  23 June 1993, Cambridge

  It was the most important mathematics lecture of the century. Two hundred mathematicians were transfixed. Only a quarter of them fully understood the dense mixture of Greek symbols and algebra that covered the blackboard. The rest were there merely to witness what they hoped would be a truly historic occasion.

  The rumours had started the previous day. Electronic mail over the Internet had hinted that the lecture would culminate in a solution to Fermat’s Last Theorem, the world’s most famous mathematical problem. Such gossip was not uncommon. The subject of Fermat’s Last Theorem would often crop up over tea, and mathematicians would speculate as to who might be doing what. Sometimes mathematical mutterings in the senior common room would turn the speculation into rumours of a breakthrough, but nothing had ever materialised.

  This time the rumour was different. One Cambridge research student was so convinced that it was true that he dashed to the bookies to bet £10 that Fermat’s Last Theorem would be solved within the week. However, the bookie smelt a rat and refused to accept his wager. This was the fifth student to have approached him that day, all of them asking to place the identical bet. Fermat’s Last Theorem had baffled the greatest minds on the planet for over three centuries, but now even bookmakers were beginning to suspect that it was on the verge of being proved.

  The three blackboards became filled with calculations and the lecturer paused. The first board was erased and the algebra continued. Each line of mathematics appeared to be one tiny step closer to the solution, but after thirty minutes the lecturer had still not announced the proof. The professors crammed into the front rows waited eagerly for the conclusion. The students standing at the back looked to their seniors for hints of what the conclusion might be. Were they watching a complete proof to Fermat’s Last Theorem, or was the lecturer merely outlining an incomplete and anticlimactic argument?

  The lecturer was Andrew Wiles, a reserved Englishman who had emigrated to America in the 1980s and taken up a professorship at Princeton University where he had earned a reputation as one of the most talented mathematicians of his generation. However, in recent years he had almost vanished from the annual round of conferences and seminars, and colleagues had begun to assume that Wiles was finished. It is not unusual for brilliant young minds to burn out, a point noted by the mathematician Alfred Adler: ‘The mathematical life of a mathematician is short. Work rarely improves after the age of twenty-five or thirty. If little has been accomplished by then, little will ever be accomplished.’

  ‘Young men should prove theorems, old men should write books,’ observed G.H. Hardy in his book A Mathematician’s Apology. ‘No mathematician should ever forget that mathematics, more than any other art or science, is a young man’s game. To take a simple illustration, the average age of election to the Royal Society is lowest in mathematics.’ His own most brilliant student Srinivasa Ramanujan was elected a Fellow of the Royal Society at the age of just thirty-one, having made a series of outstanding breakthroughs during his youth. Despite having received very little formal education in his home village of Kumbakonam in South India, Ramanujan was able to create theorems and solutions which had evaded mathematicians in the West. In mathematics the experience that comes with age seems less important than the intuition and daring of youth. When he posted his results to Hardy, the Cambridge professor was so impressed that he invited him to abandon his job as a lowly clerk in South India and attend Trinity College, where he could interact with some of the world’s foremost number theorists. Sadly the harsh East Anglian winters were too much for Ramanujan who contracted tuberculosis and died at the age of thirty-three.

  Other mathematicians have had equally brilliant but short careers. The nineteenth-century Norwegian Niels Henrik Abel made his greatest contribution to mathematics at the age of nineteen and died in poverty, just eight years later, also of tuberculosis. Charles Hermite said of him, ‘He has left mathematicians something to keep them busy for five hundred years’, and it is certainly true that Abel’s discoveries still have a profound influence on today’s number theorists. Abel’s equally gifted contemporary Evariste Galois also made his breakthroughs while still a teenager and then died aged just twenty-one.

  These examples are not intended to show that mathematicians die prematurely and tragically but rather that their most profound ideas are generally conceived while they are young, and as Hardy once said, ‘I do not know an instance of a major mathematical advance initiated by a man past fifty.’ Middle-aged mathematicians often fade into the background and occupy their remaining years teaching or administrating rather than researching. In the case of Andrew Wiles nothing could be further from the truth. Although he had reached the grand old age of forty he had spent the last seven years working in complete secrecy, attempting to solve the single greatest problem in mathematics. While others suspected he had dried up, Wiles was making fantastic progress, inventing new techniques and tools which he was now ready to reveal. His decision to work in absolute isolation was a high-risk strategy and one which was unheard of in the world of mathematics.

  Without inventions to patent, the mathematics department of any university is the least secretive of all. The community prides itself in an open and free exchange of ideas and tea-time breaks have evolved into daily rituals during which concepts are shared and explored over biscuits and Earl Grey. As a result it is increasingly common to find papers being published by co-authors or teams of mathematicians and consequently the glory is shared out equally. However, if Professor Wiles had genuinely discovered a comple
te and accurate proof of Fermat’s Last Theorem, then the most wanted prize in mathematics was his and his alone. The price he had to pay for his secrecy was that he had not previously discussed or tested any of his ideas with the mathematics community and therefore there was a significant chance that he had made some fundamental error.

  Ideally Wiles had wanted to spend more time going over his work to allow him to check fully his final manuscript. Then the unique opportunity arose to announce his discovery at the Isaac Newton Institute in Cambridge and he abandoned caution. The sole aim of the institute’s existence is to bring together the world’s greatest intellects for a few weeks in order to hold seminars on a cutting-edge research topic of their choice. Situated on the outskirts of the university, away from students and other distractions, the building is especially designed to encourage the academics to concentrate on collaboration and brainstorming. There are no dead-end corridors in which to hide and every office faces a central forum. The mathematicians are supposed to spend time in this open area, and are discouraged from keeping their office doors closed. Collaboration while moving around the institute is also encouraged – even the elevator, which only travels three floors, contains a blackboard. In fact every room in the building has at least one blackboard, including the bathrooms. On this occasion the seminars at the Newton Institute came under the heading of ‘L-functions and Arithmetic’. All the world’s top number theorists had been gathered together in order to discuss problems relating to this highly specialised area of pure mathematics, but only Wiles realised that L-functions might hold the key to solving Fermat’s Last Theorem.

  Although he had been attracted by having the opportunity to reveal his work to such an eminent audience, the main reason for making the announcement at the Newton Institute was that it was in his home town, Cambridge. This was where Wiles had been born, it was here he grew up and developed his passion for numbers, and it was in Cambridge that he had alighted on the problem which was to dominate the rest of his life.

  The Last Problem

  In 1963, when he was ten years old, Andrew Wiles was already fascinated by mathematics. ‘I loved doing the problems in school, I’d take them home and make up new ones of my own. But the best problem I ever found I discovered in my local library.’

  One day, while wandering home from school, young Wiles decided to visit the library in Milton Road. It was rather impoverished compared with the libraries of the colleges, but nonetheless it had a generous collection of puzzle books and this is what often caught Andrew’s attention. These books were packed with all sorts of scientific conundrums and mathematical riddles, and for each question the solution would be conveniently laid out somewhere in the final few pages. But this time Andrew was drawn to a book with only one problem, and no solution.

  The book was The Last Problem by Eric Temple Bell, the history of a mathematical problem which has its roots in ancient Greece, but which only reached full maturity in the seventeenth century. It was then that the great French mathematician Pierre de Fermat inadvertently set it as a challenge for the rest of the world. One great mathematician after another had been humbled by Fermat’s legacy and for three hundred years nobody had been able to solve it. There are other unsolved questions in mathematics, but what makes Fermat’s problem so special is its deceptive simplicity. Thirty years after first reading Bell’s account, Wiles told me how he felt the moment he was introduced to Fermat’s Last Theorem: ‘It looked so simple, and yet all the great mathematicians in history couldn’t solve it. Here was a problem that I, a ten-year-old, could understand and I knew from that moment that I would never let it go. I had to solve it.’

  The problem looks so straightforward because it is based on the one piece of mathematics that everyone can remember – Pythagoras’ theorem:

  In a right-angled triangle the square on the hypotenuse is equal to the sum of the squares on the other two sides.

  As a result of this Pythagorean ditty, the theorem has been scorched into millions if not billions of human brains. It is the fundamental theorem that every innocent schoolchild is forced to learn. But despite the fact that it can be understood by a ten-year-old, Pythagoras’ creation was the inspiration for a problem which had thwarted the greatest mathematical minds of history.

  Pythagoras of Samos was one of the most influential and yet mysterious figures in mathematics. Because there are no first-hand accounts of his life and work, he is shrouded in myth and legend, making it difficult for historians to separate fact from fiction. What seems certain is that Pythagoras developed the idea of numerical logic and was responsible for the first golden age of mathematics. Thanks to his genius numbers were no longer merely used to count and calculate, but were appreciated in their own right. He studied the properties of particular numbers, the relationships between them and the patterns they formed. He realised that numbers exist independently of the tangible world and therefore their study was untainted by the inaccuracies of perception. This meant he could discover truths which were independent of opinion or prejudice and which were more absolute than any previous knowledge.

  Living in the sixth century BC, Pythagoras gained his mathematical skills on his travels throughout the ancient world. Some tales would have us believe that he travelled as far as India and Britain, but what is more certain is that he gathered many mathematical techniques and tools from the Egyptians and Babylonians. Both these ancient peoples had gone beyond the limits of simple counting and were capable of performing complex calculations which enabled them to create sophisticated accounting systems and construct elaborate buildings. Indeed they saw mathematics as merely a tool for solving practical problems; the motivation behind discovering some of the basic rules of geometry was to allow reconstruction of field boundaries which were lost in the annual flooding of the Nile. The word itself, geometry, means ‘to measure the earth’.

  Pythagoras observed that the Egyptians and Babylonians conducted each calculation in the form of a recipe which could be followed blindly. The recipes, which would have been passed down through the generations, always gave the correct answer and so nobody bothered to question them or explore the logic underlying the equations. What was important for these civilisations was that a calculation worked – why it worked was irrelevant.

  After twenty years of travel Pythagoras had assimilated all the mathematical rules in the known world. He set sail for his home island of Samos in the Aegean Sea with the intention of founding a school devoted to the study of philosophy and in particular concerned with research into his newly acquired mathematical rules. He wanted to understand numbers, not merely exploit them. He hoped to find a plentiful supply of free-thinking students who could help him develop radical new philosophies, but during his absence the tyrant Polycrates had turned the once liberal Samos into an intolerant and conservative society. Polycrates invited Pythagoras to join his court, but the philosopher realised that this was only a manoeuvre aimed at silencing him and therefore declined the honour. Instead he left the city in favour of a cave in a remote part of the island, where he could contemplate without fear of persecution.

  Pythagoras did not relish his isolation and eventually resorted to bribing a young boy to be his first pupil. The identity of the young boy is uncertain but some historians have suggested that his name was also Pythagoras, and that the student would later gain fame as the first person to suggest that athletes should eat meat to improve their physique. Pythagoras, the teacher, paid his student three oboli for each lesson he attended and noticed that as the weeks passed the boy’s initial reluctance to learn was transformed into an enthusiasm for knowledge. To test his pupil Pythagoras pretended that he could no longer afford to pay the student and that the lessons would have to stop, at which point the boy offered to pay for his education rather than have it ended. The pupil had become a disciple. Unfortunately this was Pythagoras’ only conversion on Samos. He did temporarily establish a school, known as the Semicircle of Pythagoras, but his views on social reform were un
acceptable and the philosopher was forced to flee the colony with his mother and his one and only disciple.

  Pythagoras departed for southern Italy, which was then a part of Magna Graecia, and settled in Croton where he was fortunate in finding the ideal patron in Milo, the wealthiest man in Croton and one of the strongest men in history. Although Pythagoras’ reputation as the sage of Samos was already spreading across Greece, Milo’s fame was even greater. Milo was a man of Herculean proportions who had been champion of the Olympic and Pythian Games a record twelve times. In addition to his athleticism Milo also appreciated and studied philosophy and mathematics. He set aside part of his house and provided Pythagoras with enough room to establish a school. So it was that the most creative mind and the most powerful body formed a partnership.

  Secure in his new home Pythagoras founded the Pythagorean Brotherhood – a band of six hundred followers who were capable not only of understanding his teachings, but who could add to them by creating new ideas and proofs. Upon entering the Brotherhood each follower had to donate all their worldly possessions to a common fund and should anybody ever leave they would receive twice the amount they had originally donated and a tombstone would be erected in their memory. The Brotherhood was an egalitarian school and included several sisters. Pythagoras’ favourite student was Milo’s own daughter, the beautiful Theano, and, despite the difference in their ages, they eventually married.

  Soon after founding the Brotherhood, Pythagoras coined the word philosopher, and in so doing defined the aims of his school. While attending the Olympic Games, Leon, Prince of Phlius, asked Pythagoras how he would describe himself. Pythagoras replied, ‘I am a philosopher,’ but Leon had not heard the word before and asked him to explain.