ebooksgratis.com

See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
Lucas-Lehmer-Riesel test - Wikipedia, the free encyclopedia

Lucas-Lehmer-Riesel test

From Wikipedia, the free encyclopedia

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

Contents

[edit] 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 {ui} for all i > 0 by:

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

Then N is prime if and only if it divides un − 2.

[edit] Finding the starting value

  • If k is equal to 1, and n is odd, then we are dealing with Mersenne numbers, and can take u0 = 4.
  • If n \equiv 3 \pmod{4}, then we can take u0 = 3.
  • If k = 3, and n = 0 or 3 mod 4 then u0 = 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 u0

[edit] 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 ui. 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 2ith term of the sequence v(i) = ai + a i. If a satisfies a quadratic equation, this is a Lucas sequence, and has an expression of the form v(i) = αv(i − 1) + βv(i − 2). Really, we're looking at the k \times 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.

[edit] 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.

[edit] External links

[edit] 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
Languages


aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -