Power of a prime number

How many values of whole number x x such that P = x 3 + 3 x 2 + x + 3 P=x^{3}+3x^{2}+x+3 is a power of a prime number?

3 4 0 1

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.

1 solution

Patrick Corn
Jun 5, 2019

Write P = ( x 2 + 1 ) ( x + 3 ) . P = (x^2+1)(x+3). Notice that if x = 0 x=0 this is a power of a prime. So now assume x 1. x \ge 1. Suppose P P is a power of a prime.

In this case both x 2 + 1 x^2+1 and x + 3 x+3 must be powers of the same prime. Since x 1 , x \ge 1, they are both divisible by that prime. But then so is x 2 + 1 ( x + 3 ) ( x 3 ) = 10. x^2+1-(x+3)(x-3) = 10. So the prime is either 2 2 or 5. 5.

Suppose the prime is 2. 2. We get x = 2 k 3 , x = 2^k-3, and so x 2 + 1 = 2 2 k 6 2 k + 10 x^2+1 = 2^{2k} - 6 \cdot 2^k + 10 is a power of 2. 2. The first two terms are divisible by 4 4 but the last term is not. So x 2 + 1 x^2+1 is not divisible by 4 , 4, and it's a power of 2 , 2, so it must equal 2. 2. Hence x = 1 , x=1, which is indeed a solution.

Suppose the prime is 5. 5. We get x = 5 k 3 , x=5^k-3, and so x 2 + 1 = 5 2 k 6 5 k + 10 x^2+1 = 5^{2k} - 6 \cdot 5^k + 10 is a power of 5. 5. If k = 1 k=1 then x = 2 , x=2, which is a solution. If k 2 , k \ge 2, the first two terms are divisible by 25 25 but the last term is not. So x 2 + 1 x^2+1 is not divisible by 25 , 25, and it's a power of 5 , 5, so it must equal 5. 5. This leads back to x = 2 , x=2, which we have already discarded.

So the only solutions are x = 0 , 1 , 2 , x=0,1,2, and the answer is 3 . \fbox{3}.

I think there are 2 other digit -2 and -1.

Lê Nhật Khôi - 2 years ago

Log in to reply

The question asked for "whole numbers."

Patrick Corn - 1 year, 12 months ago

yes -1 is also a solution

Kushal Bose - 1 year, 12 months ago

Log in to reply

-1 is not a whole number.

Patrick Corn - 1 year, 11 months ago

Log in to reply

whole number is integer and -1; -2 are integer

Lê Nhật Khôi - 1 year, 11 months ago

Moreover my Eng is bad. I think whole number= all number

Lê Nhật Khôi - 1 year, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...