mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Math (https://www.mersenneforum.org/forumdisplay.php?f=8)
-   -   Chebyshev polynomials and higher order Lucas Lehmer algorithm by Kok Seng Chu (https://www.mersenneforum.org/showthread.php?t=27479)

 T.Rex 2022-01-10 11:51

Chebyshev polynomials and higher order Lucas Lehmer algorithm by Kok Seng Chu

Hi,
I've found this recent (2021, October 3rd) paper named "CHEBYSHEV POLYNOMIALS AND HIGHER ORDER LUCAS
LEHMER ALGORITHM", by KOK SENG CHUA, based on previous work by Pedja Terzi´c, and talking about the necessity part.
This looks very interesting to me, since it provides a search about generalized Mersennes and the LLT (x^2-2).
However, I've not spent yet enough time to read it, and it's not easy for me to understand it. So, I'd like to get comments from true mathematicians.
[url]https://arxiv.org/pdf/2010.02677.pdf[/url]
Regards

 T.Rex 2022-01-11 21:40

The formula for Wagstaff numbers seems OK.

With Pari/gp .

[CODE]t(q)={w=(2^q+1)/3;S0=4;print("w: ",w);S=S0;for(i=1,q-1,S=Mod(S^2-2,w));s1=lift(Mod(S-5-9,w));s2=lift(Mod(S-5+9,w));print(s1," ",s2)}

? t(11)
w: 683
665 0

? t(13)
w: 2731
0 18

? t(17)
w: 43691
43673 0

? t(19)
w: 174763
0 18

? t(23)
w: 2796203
2796185 0

? t(29)
w: 178956971 Not prime
59834419 59834437

? t(31)
w: 715827883
0 18

? t(37)
w: 45812984491 Not prime
24875527143 24875527161

? t(41)
w: 733007751851 Not prime
634893124730 634893124748

? t(43)
w: 2932031007403
0 18

? t(61)
w: 768614336404564651
0 18
[/CODE]

 Dr Sardonicus 2022-01-15 14:44

The sufficiency result (Lemma 2.1) requires a complete factorization of Q + 1 or Q - 1 in order to prove that Q is prime.

 kijinSeija 2022-06-12 20:37

I don't know if it's related to this topic but I made some probable primality test for numbers of the forum (a^p-1)/(a-1) and (a^p+1)/(a+1) using Chebyshev polynomials :

but the test isn't perfect and there are some conditions to apply :

- a must not be a perfect power otherwise you can get false positive.
- p must be a prime number >2 otherwise you can "break" the primality test and get false positive

Let [TEX]$N = \frac{a^p-1}{a-1}$[/TEX]

Let the sequence [TEX]S_i = 2 \cdot T_{a}(S_{i-1}/2)[/TEX] where [TEX]T_{n}(x)[/TEX] is the Chebyshev's polynomial of the first kind with [TEX]$S_0 = p$[/TEX]

[TEX]$N$[/TEX] is prime if [TEX]S_{p} \equiv 2 \cdot T_{a}(p/2) (mod N)[/TEX] or [TEX]S_{p} \equiv 2 \cdot T_{a-2}(p/2) (mod N)[/TEX]

You can found the test here : [url]https://sagecell.sagemath.org/?z=eJxtzsEKwjAMBuC74DuEndpZkQ3FQ41v4C69itBtlQ3cGraqCHt441RQ2CUhyUf4LW40HI8QN9c-QOsD5A4skOvOrghA_u66eD4jXG9_HBvq6oZlW8IeUhYZCnuiZSJXwnLV85nBgy8Fqew1FKHDhPu9qi9O8LRDUgbTmPylqFz-6Ct3E1YlyqxSqRkscPxSn4XBKUfshmHitkw_V8UZ2yD-ckn9XkZj_uhrosI35Ps68ErqJ45oU0Q=&lang=gp&interacts=eJyLjgUAARUAuQ==[/url]

For [TEX]$N = \frac{a^p+1}{a+1}$[/TEX]

Let the sequence [TEX]S_i = 2 \cdot T_{a}(S_{i-1}/2)[/TEX] where [TEX]T_{n}(x)[/TEX] is the Chebyshev's polynomial of the first kind with [TEX]$S_0 = p$[/TEX]

[TEX]$N$[/TEX] is prime if [TEX]S_{p} \equiv 2 \cdot T_{a}(p/2) (mod N)[/TEX] or [TEX]S_{p} \equiv 2 \cdot T_{a+2}(p/2) (mod N)[/TEX]

You can found the test here : [url]https://sagecell.sagemath.org/?z=eJxtzsEKgkAQBuC70DsMnlZdEK3bNr1BXrxGsK4bCuoOuiWBD99kBQVdZpiZj-HXuFVwOkHcXycPg_NQWdBAdrxY44HcbMd4ExDuvh0bGtue5VDDAXIWBQp9piSLUqG5qk1Q4tHVgmTxHIwfMeM-N21nBU97JFliHpPrTGOr-9TYm9Ayk2WaR4pBguuX9iJK_OeI3bL8uSX5-yo54-DFT65IvZbhmj_8mNC4ntzUel5F6gGEWlM0&lang=gp&interacts=eJyLjgUAARUAuQ==[/url]

For the moment I didn't get a counterexample If you found one please tell me.

EDIT : (Second test fails for (a^3+1)/(a+1) apparently where a = 5 and 7)

 All times are UTC. The time now is 19:42.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.