انتقل إلى المحتوى
Number Buffet

أعداد فيرما

F(n) = 2^(2^n) + 1. ظنّ فيرما أنها كلها أولية؛ فوجد أويلر عاملًا للسادس منها وأنهى الفكرة.

OEIS A000215 · قراءة 3 دقيقة

الإعدادات

إعدادات جاهزة

F(0) through F(32) — 33 numbers, after which primality is unsettled.

F(0) = 3. Set 5 to begin at Euler's counterexample.

Full decimal form switches to power notation once a value is too long to print.

Group digits as 4,294,967,297.

اضبط المظهر بدقة

اختر أولًا إعدادًا جاهزًا بجانب الصورة — هذه المفاتيح تضبطه.

Frame

A border drawn inside the edge of the image.

خيارات متقدّمة

النتائج

8 قيم

3, 5, 17, 257, 65537, 4294967297, 18446744073709551617, 340282366920938463463374607431768211457

Only F(0) through F(4) — 3, 5, 17, 257 and 65537 — are prime, and no larger Fermat prime has ever been found.


أنشئ صورة

فعّل JavaScript لتنسيق هذه الأرقام وتنزيلها كصورة. القيم نفسها مدرَجة أعلاه.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

لم تُترجم المقالة التفصيلية أدناه بعد، وتُعرض بالإنجليزية.

عن أعداد فيرما

Pierre de Fermat was a magistrate in Toulouse who did mathematics in letters rather than in books. In correspondence around 1640 with Bernard Frénicle de Bessy, Marin Mersenne and Blaise Pascal he claimed that every number of the form 2^(2^n) + 1 is prime, and was unusually candid about not being able to prove it — he told Pascal he was convinced of the result but could not establish it. The first five values, 3, 5, 17, 257 and 65537, are indeed prime, which is an uncomfortably persuasive amount of evidence.

Leonhard Euler ended it in 1732, aged twenty-five, by publishing that 4,294,967,297 = 641 × 6,700,417. He did not stumble on 641: he had proved that any factor of F(n) must have a restricted form, which cut the candidates for F(5) to a short list he could test by hand. François Édouard Anatole Lucas sharpened that constraint in 1878, and Théophile Pépin gave a clean primality criterion for Fermat numbers in 1877.

The sequence nonetheless produced one of the great results in classical geometry. On 30 March 1796, at nineteen, Carl Friedrich Gauss found that a regular 17-gon can be constructed with compass and straightedge — the first advance on the Greek constructions in two thousand years, and by his own account the thing that decided him on mathematics over philology. In the Disquisitiones Arithmeticae of 1801 he tied constructibility to the Fermat primes; Pierre Wantzel proved the converse in 1837.

Progress since has been a factoring story. Fortuné Landry split F(6) in 1880 at the age of eighty-two, a factorisation Thomas Clausen appears to have found privately in 1854 without publishing. Michael Morrison and John Brillhart cracked F(7) in 1970 with the continued fraction method, and Richard Brent and John Pollard took F(8) in 1980. Not one new Fermat prime has turned up in nearly three centuries.

الخصائص الرئيسية

  • F(n) = 2^(2^n) + 1, giving 3, 5, 17, 257, 65537, 4294967297, …
  • Only F(0) through F(4) are known to be prime, and every F(n) from n = 5 to n = 32 has been proved composite.
  • F(5) = 4,294,967,297 = 641 × 6,700,417, the factorisation Euler published in 1732.
  • F(n) = F(0)·F(1)·…·F(n-1) + 2 for every n ≥ 1, and also F(n) = (F(n-1) - 1)² + 1.
  • Any two distinct Fermat numbers are coprime, which gives Goldbach his proof that there are infinitely many primes.
  • Every prime factor of F(n) for n ≥ 2 has the form k·2^(n+2) + 1 — Euler used the weaker version of this to find 641.
  • Pépin's test: for n ≥ 1, F(n) is prime if and only if 3^((F(n)-1)/2) ≡ -1 (mod F(n)).
  • A regular polygon with N sides is constructible with compass and straightedge exactly when N is a power of two times a product of distinct Fermat primes, so 17 and 257 sides are constructible and 7 and 9 are not.
  • F(n) has floor(2^n · log10 2) + 1 decimal digits: F(5) has 10 and F(12) has 1,234.

أين تظهر

  • 65537 is the near-universal RSA public exponent in TLS certificates: it is prime, and in binary it is 1 followed by fifteen zeros and a 1, so exponentiation by it costs only sixteen squarings and one multiply.
  • The IDEA block cipher, published by Xuejia Lai and James Massey in 1991, multiplies modulo 65537.
  • Gauss's 17-gon result is the reason Fermat primes appear in any treatment of straightedge-and-compass construction; a 17-pointed star stands on his memorial in Braunschweig, the story being that a stonemason refused the 17-gon itself because it would be indistinguishable from a circle.
  • Number-theoretic transforms taken modulo a Fermat number — the "Fermat number transform" — are used for exact integer convolution in signal processing, where floating-point FFTs would introduce rounding error.
  • The Cunningham Project, which tabulates factorisations of b^n ± 1, tracks the Fermat numbers as one of its headline families, and they remain standard benchmarks for new factoring algorithms.

كيف تستخدم هذا المُنشئ

تظهر القيم المُنشأة في الأعلى، وبجانبها زرّ النسخ. ولتحويلها إلى صورة اختر مظهرًا من الأنماط ضمن أنشئ صورة، ثم حدّد مقاس التصدير ونزّلها بصيغة PNG أو JPEG أو WebP. كل شيء يُرسم في متصفحك، فلا يُرسل أي شيء تنشئه إلى خادم.

يتحدّث شريط العنوان مع عملك، فيعيد الرابط دائمًا ما تراه بالضبط — وهو أمر مفيد لمشاركة متتالية معيّنة أو الاحتفاظ بإعداد لوقت لاحق. استخدم نسخ لأخذ القيم كنص عادي، أو تصدير البيانات للحصول على CSV و JSON و NDJSON و SQL و XML.

المصادر

تستند الملخّصات التاريخية في هذه الصفحة إلى المراجع ذات الرخص المفتوحة المذكورة أعلاه. لاحظت خطأً؟ أخبرنا وسنصلحه.