Lucas-Lehmer-Riesel test

Lucas-Lehmer-Riesel test

The Lucas-Lehmer-Riesel test is a primality test for numbers of the form N=k 2^n-1, with 2^n > k. The test was developed by Hans Riesel and it is based on the Lucas–Lehmer test for Mersenne numbers.

The algorithm

The algorithm is very similar to the Lucas-Lehmer test, but with a variable starting point depending on the value of "k".

Define a sequence {"u""i"} for all "i" > 0 by:

u_i = u_{i-1}^2-2

Then N is prime if and only if it divides u_{n-2}.

Finding the starting value

*If "k" is equal to 1, and "n" is odd, then we are dealing with Mersenne numbers, and can take u_0 = 4.
*If n equiv 3 pmod{4}, then we can take u_0 = 3.
*If k = 3, and n = 0 or 3 mod 4 then u_0 = 5778.
*If k = 1 or 5 mod 6 and 3 does not divide N, then we take u_0 = (2+sqrt{3})^k+(2-sqrt{3})^k.
*Otherwise, we are in the case where k is a multiple of 3, and it is more difficult to select the right value of u_0

How does the test work?

The Lucas-Lehmer-Riesel test is a particular case of group-order primality testing; we demonstrate that some number is prime by showing that some group has the order that it would have were that number prime, and we do this by finding an element of that group of precisely the right order.

For Lucas-style tests on a number N, we work in the multiplicative group of a quadratic extension of the integers modulo N; if N is prime, the order of this multiplicative group is N^2-1, it has a subgroup of order N+1, and we try to find a generator for that subgroup.

We start off by trying to find a non-iterative expression for the u_i. Following the model of the Lucas-Lehmer test, put u_i = a^{2^i} + a^{-2^i}, and by induction we have u_i = u_{i-1}^2 - 2.

So we can consider ourselves as looking at the 2"i"th term of the sequence v(i) = a^i + a^{-i}. If a satisfies a quadratic equation, this is a Lucas sequence, and has an expression of the form v(i) = alpha v(i-1) + eta v(i-2). Really, we're looking at the k imes 2^ith term of a different sequence, but since decimations (take every kth term starting with the zeroth) of a Lucas sequence are themselves Lucas sequences, we can deal with the factor k by picking a different starting point.

LLR software

LLR is a program that can run the LLR-tests. The program was developed by Jean Penné. Vincent Penné has modified the program so that it can obtain tests via the Internet. The software is also used by the distributed computing project Riesel Sieve.

External links

* [http://pagesperso-orange.fr/jean.penne/index2.html Download Jean Penné's LLR]

References

* Hans Riesel: "Lucasian Criteria for the Primality of N = h·2n - 1". Mathematics of Computation, Vol. 23, No. 108 (Oct. 1969), pp. 869-875, doi:10.2307/2004975


Wikimedia Foundation. 2010.

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

Look at other dictionaries:

  • Lucas–Lehmer test for Mersenne numbers — This article is about the Lucas–Lehmer test (LLT), that only applies to Mersenne numbers. There is also a Lucas Lehmer Riesel test for numbers of the form N=k 2^n 1, with 2^n > k, based on the LLT: see Lucas Lehmer Riesel test. There is also a… …   Wikipedia

  • Lucas-Lehmer Test — Eine Mersenne Zahl ist eine Zahl der Form 2n − 1. Im Speziellen bezeichnet man mit Mn = 2n − 1 die n te Mersenne Zahl. Die Primzahlen unter den Mersenne Zahlen werden Mersenne Primzahlen genannt. Die ersten acht Mersenne Primzahlen Mp sind 3, 7,… …   Deutsch Wikipedia

  • Riesel Sieve — is a distributed computing project, running in part on the BOINC platform. Its aim is to prove that 509203 is the smallest Riesel number, by finding a prime of the form k · 2 n −1 for all odd k smaller than 509203.Progress of the projectAt the… …   Wikipedia

  • Derrick Henry Lehmer — Born February 23, 1905(1905 02 23) Berkeley, California Died May 22, 1991(1991 05 22) (aged&# …   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

  • 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

  • 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

  • Тест Люка — Тест Люка  Лемера  эффективный тест простоты для чисел Мерсенна. Благодаря этому тесту самые большие простые числа всегда были числами Мерсенна даже задолго до появления компьютеров.[1] Содержание 1 История 2 Тест 3 …   Википедия

  • List of mathematics articles (L) — NOTOC L L (complexity) L BFGS L² cohomology L function L game L notation L system L theory L Analyse des Infiniment Petits pour l Intelligence des Lignes Courbes L Hôpital s rule L(R) La Géométrie Labeled graph Labelled enumeration theorem Lack… …   Wikipedia

  • PrimeGrid — Développeur Rytis Slatkevičius Première version 12 …   Wikipédia en Français

Share the article and excerpts

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