Primes of the the form ( n n + 1 ) (n^n +1)

How many primes are in the form ( n n + 1 ) (n^n +1) (for integer n n ) and is less than 1 0 18 10^{18} ?


The answer is 3.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Mark Hennings
Jan 24, 2017

Since 15 log 10 15 < 18 < 16 log 10 16 15 \log_{10}15 < 18 < 16\log_{10}16 , we are only interested in n n in the range 1 n 15 1 \le n \le 15 .

If n n has an odd prime factor p p , so that n = p q n = pq for some q 1 q \ge 1 , then since n n + 1 = n p q + 1 = ( n q + 1 ) j = 0 p 1 ( 1 ) j n q j n^n + 1 \; = \; n^{pq} + 1 \; = \; (n^q + 1)\sum_{j=0}^{p-1} (-1)^j n^{qj} we deduce that n n + 1 n^n + 1 is divisible by n q + 1 n^q + 1 and is bigger than n q + 1 n^q + 1 , and hence is not prime.

Thus the only cases we need to consider are n = 1 , 2 , 4 , 8 n = 1,2,4,8 . The first three ( 2 , 5 , 257 2\,,\,5\,,\,257 ) are prime, while 8 8 + 1 = 2 24 + 1 8^8 + 1 \; = \; 2^{24} + 1 is divisible by 2 8 + 1 2^8+1 , so is not prime. The answer is therefore 3 \boxed{3} .

William Isoroku
Jan 24, 2017

First use the fact that a n + b n a^n+b^n is factorable if a a and b b are both odd. Then use fermat's primes.

Pi Han Goh
Jan 24, 2017

This problem becomes trivial if we apply the overkill technique: Zsigmondy's theorem .

On the other hand, here's a similar problem that was posted last time.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...