The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

x^n-(x-1)^n Prime Numbers

 
Reply to topic    The Grey Labyrinth Forum Index -> Visitor Submitted Puzzles
View previous topic :: View next topic  
Author Message
Chuck
Daedalian Member



PostPosted: Fri Mar 22, 2013 9:03 pm    Post subject: 1 Reply with quote

Everyone knows that if 2^n-1 is prime, n is prime. But 2^n-1 is just an exmaple of the more general x^n-(x-1)^n where x = 2. If x^n-(x-1)^n is prime, is n always prime? I can't find any counter-examples. For higher x I get:
Code:

 x   3^x-2^x primes
---  --------------
  2   5
  3   19
  5   211
 17   129009091
 29   68629840493971
 31   617671248800299
 53   19383245658672820642055731
 59   14130386091162273752461387579
101   1546132562196033990574082188840405015112916155251
277   1454077510067338869372316944847370699315973030...
      ...8977340746977842962031155489999650314740218...
      ...74144975537134405477448628043552826333261491

 x   4^x-3^x primes
---  --------------
  2   7
  3   37
  7   14197
 17   17050729021
 59   332306984815842876487217260305275077

 x   5^x-4^x primes
---  --------------
  3   61
 43   1136791005963704961126617632861
 59   173472015290681763212224222187425603741981
191   3186183822264904553072710640625561630875233107881...
      ...6472270207782250106896363274089867800367051529...
      ...351065966102374800998198276889145001421

It's similar for higher x. I've never read about this anywhere that I can remember.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Thok
Oh, foe, the cursed teeth!



PostPosted: Fri Mar 22, 2013 9:56 pm    Post subject: 2 Reply with quote

More generally, if a^n-b^n is prime, n must be prime. Proof: if q|n, then a^q-b^q|a^n-b^n, and 1<a^q-b^q<a^n-b^n. (Details left to the reader.)
Back to top
View user's profile Send private message Send e-mail AIM Address
Zag
Unintentionally offensive old coot



PostPosted: Fri Mar 22, 2013 10:26 pm    Post subject: 3 Reply with quote

Thok wrote:
More generally, if a^n-b^n is prime, n must be prime. Proof: if q|n, then a^q-b^q|a^n-b^n, and 1<a^q-b^q<a^n-b^n. (Details left to the reader.)

Well, this reader isn't clever enough.

I assume that this notation: if q|n means "if q is a divisor of n." Right? (Also, q and n have to be integers.)

Wouldn't that imply that Chuck's less general case is all that is useful if you were trying to generate primes? That is, even when n is a prime, it would be useless to try a^n-b^n, hoping it will also be prime, when |a-b| != 1, because a^n-b^n will always be divisible by |a-b|. Right, I see now that you'll always be able to fill the space a^n-b^n with |a-b| x 1 bricks.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Trojan Horse
Daedalian Member



PostPosted: Fri Mar 22, 2013 11:34 pm    Post subject: 4 Reply with quote

Zag wrote:
I assume that this notation: if q|n means "if q is a divisor of n." Right? (Also, q and n have to be integers.)


Correct.

Zag wrote:
Wouldn't that imply that Chuck's less general case is all that is useful if you were trying to generate primes? That is, even when n is a prime, it would be useless to try a^n-b^n, hoping it will also be prime, when |a-b| != 1, because a^n-b^n will always be divisible by |a-b|. Right, I see now that you'll always be able to fill the space a^n-b^n with |a-b| x 1 bricks.


Correct again.
Back to top
View user's profile Send private message Send e-mail
Chuck
Daedalian Member



PostPosted: Sat Mar 23, 2013 1:56 am    Post subject: 5 Reply with quote

If a^n+b^n is prime, does n have to be a power of 2? I can't find a counter-example.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Thok
Oh, foe, the cursed teeth!



PostPosted: Sat Mar 23, 2013 5:39 am    Post subject: 6 Reply with quote

Chuck wrote:
If a^n+b^n is prime, does n have to be a power of 2? I can't find a counter-example.


Yes. If n=ep, where p is odd, there's a standard factorization of the polynomial x^p+y^p, that gives a factorization of a^n+b^n by setting x=a^e, y=b^e.
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Visitor Submitted Puzzles All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3