About prime

Find the sum of all prime numbers p p for which 1 n + 2 n + + ( p + 1 ) n 1^n+2^n+\cdots+(p+1)^n is always divisible by p 1 p-1 for any positive integer n n .


The answer is 12.

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.

2 solutions

David Vreken
May 9, 2018

First consider the specific case of n = 1 n = 1 . Since the sum of the first k integers is k ( k 1 ) 2 \frac{k(k-1)}{2} , we are trying to find p p values for when ( p + 1 ) ( p + 2 ) 2 \frac{(p+1)(p+2)}{2} is divisible by p 1 p-1 , or integer solutions to ( p + 1 ) ( p + 2 ) 2 ( p 1 ) \frac{(p+1)(p+2)}{2(p-1)} . Now ( p + 1 ) ( p + 2 ) 2 ( p 1 ) \frac{(p+1)(p+2)}{2(p-1)} = = 1 2 ( ( p 2 + 3 x + 2 ) p 1 ) \frac{1}{2}(\frac{(p^2+3x+2)}{p-1}) = = 1 2 ( p 2 + 3 x 4 + 6 p 1 ) \frac{1}{2}(\frac{p^2+3x-4+6}{p-1}) = = 1 2 ( ( p + 4 ) ( p 1 ) + 6 p 1 ) \frac{1}{2}(\frac{(p+4)(p-1)+6}{p-1}) = = 1 2 ( p + 4 + 6 p 1 ) \frac{1}{2}(p+4+\frac{6}{p-1}) , so possible p p values are limited to when p 1 p-1 are factors of 6 6 , which is when p 1 p-1 is 1 1 , 2 2 , 3 3 , and 6 6 , or when p = 2 p = 2 , p = 3 p = 3 , p = 4 p = 4 , and p = 7 p = 7 . Since p p is prime, p p values are further limited to p = 2 p = 2 , p = 3 p = 3 , and p = 7 p = 7 .

Now consider all positive integers of n n . One of the prime numbers that satisfies the given conditions is p = 2 p = 2 because p 1 = 1 p-1=1 and 1 1 divides any integer.

Another prime number that satisfies the given conditions is p = 3 p = 3 , since an odd number to any integer exponent is odd and an even number to any integer exponent is even, the sum 1 n + 2 n + 3 n + 4 n 1^n + 2^n + 3^n + 4^n is the sum of 2 2 odds and 2 2 evens which is even and therefore always divisible by p 1 = 2 p-1=2 .

Finally, p = 7 p = 7 satisfies the given conditions, since the sum 1 n + 2 n + 3 n + 4 n + 5 n + 6 n + 7 n + 8 n 1^n + 2^n + 3^n + 4^n + 5^n + 6^n + 7^n + 8^n is the sum of 4 4 odds and 4 4 evens which is even, and since there are 3 3 numbers that are 1 1 more than a multiple of 3 3 ( 1 1 , 4 4 , and 7 7 ), and there are 3 3 numbers that are 2 2 more than a multiple of 3 3 ( 2 2 , 5 5 , and 8 8 ), the sum 1 n + 2 n + 3 n + 4 n + 5 n + 6 n + 7 n + 8 n 1^n + 2^n + 3^n + 4^n + 5^n + 6^n + 7^n + 8^n is also divisible by 3 3 , and therefore always divisible by p 1 = 6 p-1=6 .

Therefore, the prime numbers that satisfy the given conditions are p = 2 p = 2 , p = 3 p = 3 , and p = 7 p = 7 , and 2 + 3 + 7 = 12 2+3+7=\boxed{12} .

Giorgos K.
May 7, 2018

A quick search using M a t h e m a t i c a Mathematica

Intersection@@Table[Select[Prime@Range@100,Mod[Sum[n^k,{n,#+1}],#-1]==0&],{k,100}]

returns {2,3,7}

(tested first 100 primes p and first 100 integers n) and took the intersection of the results

How do you know that p 100 p \leq 100 must be satisfied?

Pi Han Goh - 3 years, 1 month ago

Log in to reply

here are the results for 100 different n, testing only the first 100 primes

{{2,3,7},{2,3,7,11},{2,3,7,19},{2,3,7,11},{2,3,7,23,67},{2,3,7,11,79,131},{2,3,7},{2,3,7,11},{2,3,7,19},{2,3,7,11,23,83,151},{2,3,7},{2,3,7,11},{2,3,7},{2,3,7,11,59,227},{2,3,7,19,23,67,199},{2,3,7,11},{2,3,7},{2,3,7,11,79,131,223},{2,3,7},{2,3,7,11,23},{2,3,7,19},{2,3,7,11,47},{2,3,7},{2,3,7,11},{2,3,7,23,67,503},{2,3,7,11,107},{2,3,7,19,163},{2,3,7,11,59},{2,3,7},{2,3,7,11,23,79,83,131,151,367},{2,3,7},{2,3,7,11},{2,3,7,19},{2,3,7,11},{2,3,7,23,67},{2,3,7,11},{2,3,7},{2,3,7,11},{2,3,7,19},{2,3,7,11,23,83},{2,3,7,167,499},{2,3,7,11,59,79,131,227},{2,3,7},{2,3,7,11,47},{2,3,7,19,23,67,199,419},{2,3,7,11},{2,3,7},{2,3,7,11},{2,3,7},{2,3,7,11,23,83,151,251},{2,3,7,19},{2,3,7,11,107},{2,3,7},{2,3,7,11,79,131,223},{2,3,7,23,67},{2,3,7,11,59},{2,3,7,19},{2,3,7,11},{2,3,7},{2,3,7,11,23},{2,3,7},{2,3,7,11},{2,3,7,19},{2,3,7,11},{2,3,7,23,67,263},{2,3,7,11,47,79,131},{2,3,7},{2,3,7,11},{2,3,7,19},{2,3,7,11,23,59,83,151,227},{2,3,7},{2,3,7,11},{2,3,7},{2,3,7,11},{2,3,7,19,23,67,199,503},{2,3,7,11},{2,3,7},{2,3,7,11,79,107,131},{2,3,7},{2,3,7,11,23,83},{2,3,7,19,163,487},{2,3,7,11,167},{2,3,7},{2,3,7,11,59},{2,3,7,23,67},{2,3,7,11,347},{2,3,7,19},{2,3,7,11,47,179},{2,3,7,359},{2,3,7,11,23,79,83,131,151,223,367},{2,3,7},{2,3,7,11},{2,3,7,19},{2,3,7,11},{2,3,7,23,67},{2,3,7,11},{2,3,7},{2,3,7,11,59,227},{2,3,7,19},{2,3,7,11,23}}

I think you can see now why I picked {2,3,7} and it worked I am just showing how I solved it. This is not a proof

Giorgos K. - 3 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...