Find all $n$ such that the following is prime [closed]












1












$begingroup$


Find all positive integers $n$ for which $(1+n+n^2+...+n^n)^2-n^n$ is prime.










share|cite|improve this question









$endgroup$



closed as off-topic by Servaes, Peter, Jyrki Lahtonen, ΘΣΦGenSan, José Carlos Santos Jan 24 at 13:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Servaes, Jyrki Lahtonen, ΘΣΦGenSan, José Carlos Santos

If this question can be reworded to fit the rules in the help center, please edit the question.
















  • $begingroup$
    Welcome to Math.SE. Take a look at How to ask a good question at Math.SE. To avoid downvotes and closing you should add your own efforts to the question, and tell us where you got stuck.
    $endgroup$
    – drhab
    Jan 24 at 9:45






  • 2




    $begingroup$
    One such $n$ is 3, which gives the prime 997. Conjecture: this is the only one? There are no other solutions with $nle 100,$ as I have checked with Mathematica.
    $endgroup$
    – Reiner Martin
    Jan 24 at 9:45












  • $begingroup$
    Actually, there is another solution for $n=215.$ No further solutions with $nle 1000.$
    $endgroup$
    – Reiner Martin
    Jan 24 at 9:51






  • 1




    $begingroup$
    Are you sure that 215 works though? It would be way easier to just show that 3 is the only one
    $endgroup$
    – user637829
    Jan 24 at 10:03






  • 1




    $begingroup$
    @JonSmith With the help of Wolfram alpha, I found the expression which can be proven to be always composite (See answer below). Concerning the prime for $n=215$ (with the wrong formula). Since the number passed $300$ random bases in the Miller-Rabin-test, the doubt of the primality was only theoretical.
    $endgroup$
    – Peter
    Jan 24 at 10:50


















1












$begingroup$


Find all positive integers $n$ for which $(1+n+n^2+...+n^n)^2-n^n$ is prime.










share|cite|improve this question









$endgroup$



closed as off-topic by Servaes, Peter, Jyrki Lahtonen, ΘΣΦGenSan, José Carlos Santos Jan 24 at 13:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Servaes, Jyrki Lahtonen, ΘΣΦGenSan, José Carlos Santos

If this question can be reworded to fit the rules in the help center, please edit the question.
















  • $begingroup$
    Welcome to Math.SE. Take a look at How to ask a good question at Math.SE. To avoid downvotes and closing you should add your own efforts to the question, and tell us where you got stuck.
    $endgroup$
    – drhab
    Jan 24 at 9:45






  • 2




    $begingroup$
    One such $n$ is 3, which gives the prime 997. Conjecture: this is the only one? There are no other solutions with $nle 100,$ as I have checked with Mathematica.
    $endgroup$
    – Reiner Martin
    Jan 24 at 9:45












  • $begingroup$
    Actually, there is another solution for $n=215.$ No further solutions with $nle 1000.$
    $endgroup$
    – Reiner Martin
    Jan 24 at 9:51






  • 1




    $begingroup$
    Are you sure that 215 works though? It would be way easier to just show that 3 is the only one
    $endgroup$
    – user637829
    Jan 24 at 10:03






  • 1




    $begingroup$
    @JonSmith With the help of Wolfram alpha, I found the expression which can be proven to be always composite (See answer below). Concerning the prime for $n=215$ (with the wrong formula). Since the number passed $300$ random bases in the Miller-Rabin-test, the doubt of the primality was only theoretical.
    $endgroup$
    – Peter
    Jan 24 at 10:50
















1












1








1





$begingroup$


Find all positive integers $n$ for which $(1+n+n^2+...+n^n)^2-n^n$ is prime.










share|cite|improve this question









$endgroup$




Find all positive integers $n$ for which $(1+n+n^2+...+n^n)^2-n^n$ is prime.







number-theory elementary-number-theory prime-numbers integers






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 24 at 9:43







user637829











closed as off-topic by Servaes, Peter, Jyrki Lahtonen, ΘΣΦGenSan, José Carlos Santos Jan 24 at 13:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Servaes, Jyrki Lahtonen, ΘΣΦGenSan, José Carlos Santos

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Servaes, Peter, Jyrki Lahtonen, ΘΣΦGenSan, José Carlos Santos Jan 24 at 13:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Servaes, Jyrki Lahtonen, ΘΣΦGenSan, José Carlos Santos

If this question can be reworded to fit the rules in the help center, please edit the question.












  • $begingroup$
    Welcome to Math.SE. Take a look at How to ask a good question at Math.SE. To avoid downvotes and closing you should add your own efforts to the question, and tell us where you got stuck.
    $endgroup$
    – drhab
    Jan 24 at 9:45






  • 2




    $begingroup$
    One such $n$ is 3, which gives the prime 997. Conjecture: this is the only one? There are no other solutions with $nle 100,$ as I have checked with Mathematica.
    $endgroup$
    – Reiner Martin
    Jan 24 at 9:45












  • $begingroup$
    Actually, there is another solution for $n=215.$ No further solutions with $nle 1000.$
    $endgroup$
    – Reiner Martin
    Jan 24 at 9:51






  • 1




    $begingroup$
    Are you sure that 215 works though? It would be way easier to just show that 3 is the only one
    $endgroup$
    – user637829
    Jan 24 at 10:03






  • 1




    $begingroup$
    @JonSmith With the help of Wolfram alpha, I found the expression which can be proven to be always composite (See answer below). Concerning the prime for $n=215$ (with the wrong formula). Since the number passed $300$ random bases in the Miller-Rabin-test, the doubt of the primality was only theoretical.
    $endgroup$
    – Peter
    Jan 24 at 10:50




















  • $begingroup$
    Welcome to Math.SE. Take a look at How to ask a good question at Math.SE. To avoid downvotes and closing you should add your own efforts to the question, and tell us where you got stuck.
    $endgroup$
    – drhab
    Jan 24 at 9:45






  • 2




    $begingroup$
    One such $n$ is 3, which gives the prime 997. Conjecture: this is the only one? There are no other solutions with $nle 100,$ as I have checked with Mathematica.
    $endgroup$
    – Reiner Martin
    Jan 24 at 9:45












  • $begingroup$
    Actually, there is another solution for $n=215.$ No further solutions with $nle 1000.$
    $endgroup$
    – Reiner Martin
    Jan 24 at 9:51






  • 1




    $begingroup$
    Are you sure that 215 works though? It would be way easier to just show that 3 is the only one
    $endgroup$
    – user637829
    Jan 24 at 10:03






  • 1




    $begingroup$
    @JonSmith With the help of Wolfram alpha, I found the expression which can be proven to be always composite (See answer below). Concerning the prime for $n=215$ (with the wrong formula). Since the number passed $300$ random bases in the Miller-Rabin-test, the doubt of the primality was only theoretical.
    $endgroup$
    – Peter
    Jan 24 at 10:50


















$begingroup$
Welcome to Math.SE. Take a look at How to ask a good question at Math.SE. To avoid downvotes and closing you should add your own efforts to the question, and tell us where you got stuck.
$endgroup$
– drhab
Jan 24 at 9:45




$begingroup$
Welcome to Math.SE. Take a look at How to ask a good question at Math.SE. To avoid downvotes and closing you should add your own efforts to the question, and tell us where you got stuck.
$endgroup$
– drhab
Jan 24 at 9:45




2




2




$begingroup$
One such $n$ is 3, which gives the prime 997. Conjecture: this is the only one? There are no other solutions with $nle 100,$ as I have checked with Mathematica.
$endgroup$
– Reiner Martin
Jan 24 at 9:45






$begingroup$
One such $n$ is 3, which gives the prime 997. Conjecture: this is the only one? There are no other solutions with $nle 100,$ as I have checked with Mathematica.
$endgroup$
– Reiner Martin
Jan 24 at 9:45














$begingroup$
Actually, there is another solution for $n=215.$ No further solutions with $nle 1000.$
$endgroup$
– Reiner Martin
Jan 24 at 9:51




$begingroup$
Actually, there is another solution for $n=215.$ No further solutions with $nle 1000.$
$endgroup$
– Reiner Martin
Jan 24 at 9:51




1




1




$begingroup$
Are you sure that 215 works though? It would be way easier to just show that 3 is the only one
$endgroup$
– user637829
Jan 24 at 10:03




$begingroup$
Are you sure that 215 works though? It would be way easier to just show that 3 is the only one
$endgroup$
– user637829
Jan 24 at 10:03




1




1




$begingroup$
@JonSmith With the help of Wolfram alpha, I found the expression which can be proven to be always composite (See answer below). Concerning the prime for $n=215$ (with the wrong formula). Since the number passed $300$ random bases in the Miller-Rabin-test, the doubt of the primality was only theoretical.
$endgroup$
– Peter
Jan 24 at 10:50






$begingroup$
@JonSmith With the help of Wolfram alpha, I found the expression which can be proven to be always composite (See answer below). Concerning the prime for $n=215$ (with the wrong formula). Since the number passed $300$ random bases in the Miller-Rabin-test, the doubt of the primality was only theoretical.
$endgroup$
– Peter
Jan 24 at 10:50












1 Answer
1






active

oldest

votes


















3












$begingroup$

Assume $n$ is a positive integer greater than $1$.



The sum $$1+n+n^2+cdots n^n$$ is a geometric series with value $$frac{n^{n+1}-1}{n-1}$$



Hence the number can also be expressed as $$frac{(n^n-1)(n^{n+2}-1)}{(n-1)^2}$$ which is composite for every integer $n>1$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Checks out (+1). Too bad the question is kinda dismal. Unmotivated for starters.
    $endgroup$
    – Jyrki Lahtonen
    Jan 24 at 10:54

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3












$begingroup$

Assume $n$ is a positive integer greater than $1$.



The sum $$1+n+n^2+cdots n^n$$ is a geometric series with value $$frac{n^{n+1}-1}{n-1}$$



Hence the number can also be expressed as $$frac{(n^n-1)(n^{n+2}-1)}{(n-1)^2}$$ which is composite for every integer $n>1$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Checks out (+1). Too bad the question is kinda dismal. Unmotivated for starters.
    $endgroup$
    – Jyrki Lahtonen
    Jan 24 at 10:54
















3












$begingroup$

Assume $n$ is a positive integer greater than $1$.



The sum $$1+n+n^2+cdots n^n$$ is a geometric series with value $$frac{n^{n+1}-1}{n-1}$$



Hence the number can also be expressed as $$frac{(n^n-1)(n^{n+2}-1)}{(n-1)^2}$$ which is composite for every integer $n>1$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Checks out (+1). Too bad the question is kinda dismal. Unmotivated for starters.
    $endgroup$
    – Jyrki Lahtonen
    Jan 24 at 10:54














3












3








3





$begingroup$

Assume $n$ is a positive integer greater than $1$.



The sum $$1+n+n^2+cdots n^n$$ is a geometric series with value $$frac{n^{n+1}-1}{n-1}$$



Hence the number can also be expressed as $$frac{(n^n-1)(n^{n+2}-1)}{(n-1)^2}$$ which is composite for every integer $n>1$






share|cite|improve this answer









$endgroup$



Assume $n$ is a positive integer greater than $1$.



The sum $$1+n+n^2+cdots n^n$$ is a geometric series with value $$frac{n^{n+1}-1}{n-1}$$



Hence the number can also be expressed as $$frac{(n^n-1)(n^{n+2}-1)}{(n-1)^2}$$ which is composite for every integer $n>1$







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 24 at 10:47









PeterPeter

48.8k1139136




48.8k1139136












  • $begingroup$
    Checks out (+1). Too bad the question is kinda dismal. Unmotivated for starters.
    $endgroup$
    – Jyrki Lahtonen
    Jan 24 at 10:54


















  • $begingroup$
    Checks out (+1). Too bad the question is kinda dismal. Unmotivated for starters.
    $endgroup$
    – Jyrki Lahtonen
    Jan 24 at 10:54
















$begingroup$
Checks out (+1). Too bad the question is kinda dismal. Unmotivated for starters.
$endgroup$
– Jyrki Lahtonen
Jan 24 at 10:54




$begingroup$
Checks out (+1). Too bad the question is kinda dismal. Unmotivated for starters.
$endgroup$
– Jyrki Lahtonen
Jan 24 at 10:54



Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith