Pépin-Test

Pépin-Test

Der Pépin-Test ist ein Primzahltest für Fermat-Zahlen. Er prüft, ob natürliche Zahlen der Form

F_k:=2^{2^k}+1

prim sind oder nicht. Grundlage für den Pépin-Test sind Arbeiten von Théophile Pépin (1826 – 1904), François Proth (1852 – 1879) und Édouard Lucas.

Inhaltsverzeichnis

Funktionsweise

Der Test beruht auf folgendem Satz:

Fk ist für k ≥ 1 genau dann eine Primzahl, wenn die Kongruenz

3^{(F_k-1)/2} \equiv -1 \mod  F_k

erfüllt ist.[1]

Da F0 = 3 ist, gilt der Satz nicht für k = 0. Für k = 1 ist Fk = 5 und es gilt 32 = 9 ≡ −1 mod 5. Zur Berechnung für größere k verwendet man den modulo-Befehl schon in den Zwischenschritten, wie im untenstehenden Beispiel illustriert wird.

Beweis des Satzes

\Rightarrow“: Ist für ein k ≥ 1 die Fermat-Zahl Fk prim, so gilt nach dem Eulerschen Kriterium für das Legendre-Symbol die Kongruenz

3^{(F_k -1)/2} \equiv \left(\frac{3}{F_k}\right) \mod F_k .

Aufgrund des quadratischen Reziprozitätsgesetzes gilt

\left(\frac{3}{F_k}\right) = \left(\frac{F_k}{3}\right) = \left(\frac{2}{3}\right) = -1 .

Hierbei werden die Kongruenzen Fk ≡ 1 mod 4 und Fk ≡ 2 mod 3 (mit Induktion zu zeigen) benutzt. Damit ist der Beweis in einer Richtung erbracht.

\Leftarrow“: Nehmen wir umgekehrt an, dass

3^{(F_k-1)/2} \equiv -1 \mod  F_k

gilt, so folgt durch Quadrieren

3^{F_k-1} \equiv 1 \mod  F_k .

Nach dem verbesserten Lucas-Test folgt, dass Fk prim ist.

Die Anwendung des verbesserten Lucas-Tests ist in diesem Fall besonders einfach, da Fk – 1 nur einen Primteiler, nämlich die 2, hat.

Beispiel

Als Beispiel zeigen wir mit Hilfe des Pépin-Tests, dass F3 = 28 + 1 = 257 eine Primzahl ist. Wir berechnen 3128 mod 257 schrittweise und erhalten 3128 ≡ −1 mod 257:

38 = 6561 ≡ –121 mod 257,
→ 316 ≡ (–121)2 ≡ –8 mod 257,
→ 332 ≡ (–8)2 = 64 mod 257,
→ 364 ≡ 642 ≡ –16 mod 257,
→ 3128 ≡ (–16)2 = 256 ≡ –1 mod 257.

Literatur

  • Paulo Ribenboim: Die Welt der Primzahlen, Springer Verlag, 1996, S. 71/72
  • T. Pépin, Sur la formule 2^{2^n}+1, Comptes Rendus Acad. Sci. Paris 85, 329 – 333, 1877

Einzelnachweise

  1. Historische Anmerkungen sind enthalten in John H. Jaroma: Equivalence of Pepin’s and the Lucas-Lehmer Tests, European J. of pure and applied mathematics 2, 352 - 360, 2009. Statt der Basis 3 kann man auch andere Basen verwenden, z. B. 5 und 10.

Wikimedia Foundation.

Игры ⚽ Поможем сделать НИР

Schlagen Sie auch in anderen Wörterbüchern nach:

  • Pepin-Test — Unter dem Pepin Test versteht man einen Primzahltest. Der Pepin Test überprüft Fermatsche Zahlen, das sind natürliche Zahlen der Form darauf, ob sie eine Primzahl sind oder nicht. Grundlage für den Pepin Test sind Arbeiten, die auf Édouard Lucas… …   Deutsch Wikipedia

  • Test de Pépin — En matemáticas, el test de Pépin (por el matemático francés P. Pépin) es un test de primalidad que se puede emplear para determinar si un número de Fermat es primo. Es una variante del test de Proth. Contenido 1 Descripción del test 2… …   Wikipedia Español

  • Pépin's test — In mathematics, Pépin s test is a primality test, which can be used to determine whether a Fermat number is prime. It is a variant of Proth s test. The test is named for a French mathematician, P. Pépin.Description of the testLet F n=2^{2^n}+1 be …   Wikipedia

  • Test de primalidad — El 39º número primo de Mersenne era el mayor conocido hasta la fecha de creación de este artículo. La cuestión de la determinación de si un número n …   Wikipedia Español

  • Lucas-Test (Mathematik) — Der Lucas Test ist eine Weiterentwicklung des Fermatschen Primzahltests durch den Mathematiker Édouard Lucas. Der Test wurde in den 50er Jahren von Derrick Lehmer und später nochmals von John Brillhart und John L. Selfridge verbessert. Er sollte… …   Deutsch Wikipedia

  • Prix Pépin — Pour les articles homonymes, voir Pépin. Le prix Pépin est un prix littéraire français, créé par Pierre Gévart et décerné depuis 2005, qui récompense de courtes nouvelles de science fiction d une taille maximale de 300 signes, espaces comprises.… …   Wikipédia en Français

  • Prix Pepin — Prix Pépin Pour les articles homonymes, voir Pépin. Cet article fait partie de l …   Wikipédia en Français

  • AKS primality test — The AKS primality test (also known as Agrawal–Kayal–Saxena primality test and cyclotomic AKS test) is a deterministic primality proving algorithm created and published by three Indian Institute of Technology Kanpur computer scientists, Manindra… …   Wikipedia

  • Primality test — A primality test is an algorithm for determining whether an input number is prime. Amongst other fields of mathematics, it is used for cryptography. Unlike integer factorization, primality tests do not generally give prime factors, only stating… …   Wikipedia

  • Miller–Rabin primality test — The Miller–Rabin primality test or Rabin–Miller primality test is a primality test: an algorithm which determines whether a given number is prime, similar to the Fermat primality test and the Solovay–Strassen primality test. Its original version …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”