Primality test for $N=2cdot 3^n-1$ The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Conjectured Primality Test for $N=8cdot 3^n-1$Conjectured compositeness tests for $N=b^n pm b pm 1$Conjectured Primality Test for $N=8cdot 3^n-1$Conjectured primality test for specific class of $N=kcdot 6^n-1$Conjectured primality test for $F_n(28)=28^2^n+1$Generalization of Inkeri's primality testPrimality Test for $F_n(6)=6^2^n+1$Conjectured primality testConjectured primality test IIPrimality test for numbers of the form $k cdot b^m pm 1$Compositeness tests for numbers of the form $k cdot b^n pm c$Conjectured primality tests for specific classes of $kcdot b^n pm 1$

How do you keep chess fun when your opponent constantly beats you?

Can the DM override racial traits?

Did the new image of black hole confirm the general theory of relativity?

How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?

One-dimensional Japanese puzzle

Is 'stolen' appropriate word?

Why did Peik Lin say, "I'm not an animal"?

how can a perfect fourth interval be considered either consonant or dissonant?

Deal with toxic manager when you can't quit

Can withdrawing asylum be illegal?

Mortgage adviser recommends a longer term than necessary combined with overpayments

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

Python - Fishing Simulator

What's the point in a preamp?

Are spiders unable to hurt humans, especially very small spiders?

Huge performance difference of the command find with and without using %M option to show permissions

Homework question about an engine pulling a train

Using dividends to reduce short term capital gains?

Identify 80s or 90s comics with ripped creatures (not dwarves)

Can each chord in a progression create its own key?

Do working physicists consider Newtonian mechanics to be "falsified"?

Single author papers against my advisor's will?

My body leaves; my core can stay

How do spell lists change if the party levels up without taking a long rest?



Primality test for $N=2cdot 3^n-1$



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Conjectured Primality Test for $N=8cdot 3^n-1$Conjectured compositeness tests for $N=b^n pm b pm 1$Conjectured Primality Test for $N=8cdot 3^n-1$Conjectured primality test for specific class of $N=kcdot 6^n-1$Conjectured primality test for $F_n(28)=28^2^n+1$Generalization of Inkeri's primality testPrimality Test for $F_n(6)=6^2^n+1$Conjectured primality testConjectured primality test IIPrimality test for numbers of the form $k cdot b^m pm 1$Compositeness tests for numbers of the form $k cdot b^n pm c$Conjectured primality tests for specific classes of $kcdot b^n pm 1$










2












$begingroup$


Can you provide proof or counterexample for the following claim:




Let $P_m(x)=2^-mcdot left(left(x-sqrtx^2-4right)^m+left(x+sqrtx^2-4right)^mright)$ . Let $N=2cdot 3^n-1$ such that $n>2$ . Let $S_i=P_3(S_i-1)$ with $S_0$ equal to the modular $P_6(P_3(4)) phantom5 textmod phantom5 N$ . Then , $N$ is prime iff $S_n-2 equiv 2 pmodN$




You can run this test here.



OEIS sequence of exponents $n$ for wich $N$ is prime



I was searching for counterexample using the following PARI/GP code :



CE231(lb,ub)=

for(n=lb,ub,
N=2*3^n-1;
S=Mod(2*polchebyshev(6,1,polchebyshev(3,1,2)),N);
ctr=1;
while(ctr<=n-2,
S=Mod(2*polchebyshev(3,1,S/2),N);
ctr+=1);
if(S==2 && !ispseudoprime(N),print(n)))



I have verified this claim for all $n$ up to $7000$ .










share|cite|improve this question











$endgroup$







  • 2




    $begingroup$
    FYI, $P_3(x) equiv x^3 - 3x$.
    $endgroup$
    – kennytm
    Mar 22 '15 at 9:41















2












$begingroup$


Can you provide proof or counterexample for the following claim:




Let $P_m(x)=2^-mcdot left(left(x-sqrtx^2-4right)^m+left(x+sqrtx^2-4right)^mright)$ . Let $N=2cdot 3^n-1$ such that $n>2$ . Let $S_i=P_3(S_i-1)$ with $S_0$ equal to the modular $P_6(P_3(4)) phantom5 textmod phantom5 N$ . Then , $N$ is prime iff $S_n-2 equiv 2 pmodN$




You can run this test here.



OEIS sequence of exponents $n$ for wich $N$ is prime



I was searching for counterexample using the following PARI/GP code :



CE231(lb,ub)=

for(n=lb,ub,
N=2*3^n-1;
S=Mod(2*polchebyshev(6,1,polchebyshev(3,1,2)),N);
ctr=1;
while(ctr<=n-2,
S=Mod(2*polchebyshev(3,1,S/2),N);
ctr+=1);
if(S==2 && !ispseudoprime(N),print(n)))



I have verified this claim for all $n$ up to $7000$ .










share|cite|improve this question











$endgroup$







  • 2




    $begingroup$
    FYI, $P_3(x) equiv x^3 - 3x$.
    $endgroup$
    – kennytm
    Mar 22 '15 at 9:41













2












2








2


3



$begingroup$


Can you provide proof or counterexample for the following claim:




Let $P_m(x)=2^-mcdot left(left(x-sqrtx^2-4right)^m+left(x+sqrtx^2-4right)^mright)$ . Let $N=2cdot 3^n-1$ such that $n>2$ . Let $S_i=P_3(S_i-1)$ with $S_0$ equal to the modular $P_6(P_3(4)) phantom5 textmod phantom5 N$ . Then , $N$ is prime iff $S_n-2 equiv 2 pmodN$




You can run this test here.



OEIS sequence of exponents $n$ for wich $N$ is prime



I was searching for counterexample using the following PARI/GP code :



CE231(lb,ub)=

for(n=lb,ub,
N=2*3^n-1;
S=Mod(2*polchebyshev(6,1,polchebyshev(3,1,2)),N);
ctr=1;
while(ctr<=n-2,
S=Mod(2*polchebyshev(3,1,S/2),N);
ctr+=1);
if(S==2 && !ispseudoprime(N),print(n)))



I have verified this claim for all $n$ up to $7000$ .










share|cite|improve this question











$endgroup$




Can you provide proof or counterexample for the following claim:




Let $P_m(x)=2^-mcdot left(left(x-sqrtx^2-4right)^m+left(x+sqrtx^2-4right)^mright)$ . Let $N=2cdot 3^n-1$ such that $n>2$ . Let $S_i=P_3(S_i-1)$ with $S_0$ equal to the modular $P_6(P_3(4)) phantom5 textmod phantom5 N$ . Then , $N$ is prime iff $S_n-2 equiv 2 pmodN$




You can run this test here.



OEIS sequence of exponents $n$ for wich $N$ is prime



I was searching for counterexample using the following PARI/GP code :



CE231(lb,ub)=

for(n=lb,ub,
N=2*3^n-1;
S=Mod(2*polchebyshev(6,1,polchebyshev(3,1,2)),N);
ctr=1;
while(ctr<=n-2,
S=Mod(2*polchebyshev(3,1,S/2),N);
ctr+=1);
if(S==2 && !ispseudoprime(N),print(n)))



I have verified this claim for all $n$ up to $7000$ .







elementary-number-theory prime-numbers examples-counterexamples primality-test






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 8 at 7:11







Peđa Terzić

















asked Mar 20 '15 at 7:59









Peđa TerzićPeđa Terzić

7,66422674




7,66422674







  • 2




    $begingroup$
    FYI, $P_3(x) equiv x^3 - 3x$.
    $endgroup$
    – kennytm
    Mar 22 '15 at 9:41












  • 2




    $begingroup$
    FYI, $P_3(x) equiv x^3 - 3x$.
    $endgroup$
    – kennytm
    Mar 22 '15 at 9:41







2




2




$begingroup$
FYI, $P_3(x) equiv x^3 - 3x$.
$endgroup$
– kennytm
Mar 22 '15 at 9:41




$begingroup$
FYI, $P_3(x) equiv x^3 - 3x$.
$endgroup$
– kennytm
Mar 22 '15 at 9:41










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1198056%2fprimality-test-for-n-2-cdot-3n-1%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1198056%2fprimality-test-for-n-2-cdot-3n-1%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Hidroelektrana Sadržaj Povijest | Podjela hidroelektrana | Snaga dobivena u hidroelektranama | Dijelovi hidroelektrane | Uloga hidroelektrana u suvremenom svijetu | Prednosti hidroelektrana | Nedostaci hidroelektrana | Države s najvećom proizvodnjom hidro-električne energije | Deset najvećih hidroelektrana u svijetu | Hidroelektrane u Hrvatskoj | Izvori | Poveznice | Vanjske poveznice | Navigacijski izbornikTechnical Report, Version 2Zajedničkom poslužiteljuHidroelektranaHEP Proizvodnja d.o.o. - Hidroelektrane u Hrvatskoj

WordPress Information needed

Oconto (Nebraska) Índice Demografia | Geografia | Localidades na vizinhança | Referências Ligações externas | Menu de navegação41° 8' 29" N 99° 45' 41" O41° 8' 29" N 99° 45' 41" OU.S. Census Bureau. Census 2000 Summary File 1U.S. Census Bureau. Estimativa da população (julho de 2006)U.S. Board on Geographic Names. Topical Gazetteers Populated Places. Gráficos do banco de dados de altitudes dos Estados Unidos da AméricaEstatísticas, mapas e outras informações sobre Oconto em city-data.com