Extrapolation Gone Wrong: the Case of the Fermat Primes

Samuel Arbesman recently wrote about incorrect mathematical conjectures. I wanted to add one of my favorites, which came up in my math history class a couple weeks ago.

Join Our Community of Science Lovers!

This article was published in Scientific American’s former blog network and reflects the views of the author, not necessarily those of Scientific American


Sorry, Pierre, but not all Fermat numbers are primes. Image: Public domain, via Wikimedia Commons.

Samuel Arbesman recently wrote about incorrect mathematical conjectures. I wanted to add one of my favorites, which came up in my math history class a couple weeks ago. Unlike the disproven conjectures Arbesman wrote about, which fail only for very large numbers, this one fails at 5.

Pierre de Fermat was an amateur number theorist who is now most famous (or perhaps infamous) for a note he scribbled in a margin that led to a 400-year quest to prove what is known as Fermat’s Last Theorem.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


Fermat’s conjecture about primes, however, was resolved more quickly, in under a century. Fermat noticed that 221+1, which equals 5, is prime, 222+1, or 17, is prime, and more generally, 22n+1 is prime when n=0,1,2,3, or 4. Numbers of the form Fn=22n+1 are now called Fermat numbers*, and when they’re prime, they’re called Fermat primes. Fermat conjectured that all Fermat numbers are prime. (Unlike Fermat’s Last Theorem, he never claimed to have a proof of this one.)

In 1732, about 70 years after Fermat's death, Leonhard Euler factored the 5th Fermat number into 641×6,700,417, disproving Fermat’s conjecture. Not only did Fermat’s conjecture fail, it failed spectacularly. So far, the only known Fermat primes are the ones that were known to Fermat. Fermat numbers get large very quickly, so factoring them is difficult, even with modern computing power. Every Fermat number from F5 to F32 is known to be composite, and many others, including most recently F3,329,780, are known to be composite, although we still don’t know the status on some others, such as F33. (To be fair to the computers working on it, F33 has about 2.6 billion digits.)

Perhaps someday a new, enormous Fermat prime will be discovered, and the conjecture some have that all Fermat numbers greater than F4 are composite will be refuted. The circle will be complete.

*This sentence was edited after publication to correct the definition of Fermat numbers.

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe