p + q 2 + r 3 = 2 0 1 6
How many triplets of primes ( p , q , r ) satisfy the above equation?
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.
Great approach considering modular arithmetic.
Since all of these terms are positive, we can bound the value of r < 1 3 , and consider cases from there.
This is not fair, checking 24 solutions?! I just clicked View Solution because Even after bounding, it seemed too much to check. Anyhow, noticing that one of p,q,r is 2 is a solution in itself.
@Khang Nguyen Thanh Is this the only way to solve this?
Log in to reply
I have a shorter solution.
I've shortened my solution for two of the cases so now they just involve a small amount of reasonably straightforward case checking. I haven't been able to find a way to eliminate case 2 however other than just case checking.
We have r 3 ≤ 2 0 1 6 , yeilds r ≤ 1 2 . So we consider 5 following cases:
Case 1 : r = 1 1 , so p + q 2 = 6 8 5 . Hence p or q must be equal to 2 .
If p = 2 then q 2 = 6 8 3 , which is impossible.
If q = 2 then p = 6 8 1 = 3 ⋅ 2 2 7 , which is not a prime.
Case 2 : r = 7 , so p + q 2 = 1 6 7 3 . Hence p or q must be equal to 2 .
If p = 2 then q 2 = 1 6 7 1 , which is impossible.
If q = 2 then p = 1 6 6 9 , which is a prime. We get ( p , q , r ) = ( 1 6 6 9 , 2 , 7 ) is a solution.
Case 3 : r = 5 , so p + q 2 = 1 8 9 1 . Hence p or q must be equal to 2 .
If p = 2 then q 2 = 1 8 8 9 , which is impossible.
If q = 2 then p = 1 8 8 7 = 3 ⋅ 6 2 9 , which is not a prime.
Case 4 : r = 3 , so p + q 2 = 1 9 8 9 . Hence p or q must be equal to 2 .
If p = 2 then q 2 = 1 9 8 7 , which is impossible.
If q = 2 then p = 1 9 8 5 = 5 ⋅ 3 9 7 , which is not a prime.
Case 5 : r = 2 , so p + q 2 = 2 0 0 8 .
If q = 3 then q 2 ≡ 1 ( m o d 3 ) , yeilds p ≡ 0 ( m o d 3 ) . Hence, p = 3 then q 2 = 2 0 0 5 , which is impossible.
If q = 3 then p = 1 9 9 9 , which is a prime. We get ( p , q , r ) = ( 1 9 9 9 , 3 , 2 ) is a solution.
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: General Diophantine Equations - Problem Solving
We begin by considering p , q , r = 2 which means p , q , r ≡ 1 , 3 , 5 , 7 ( m o d 8 ) .
It is easy to verify that r ≡ 1 , 3 , 5 , 7 ( m o d 8 ) ⟹ r 3 ≡ 1 , 3 , 5 , 7 ( m o d 8 ) and hence p + r 3 will leave an even residue ( m o d 8 ) as odd + odd = even .
We have q ≡ 1 , 3 , 5 , 7 ( m o d 8 ) ⟹ q 2 ≡ 1 ( m o d 8 ) . This means p + q 2 + r 3 leaves an odd residue ( m o d 8 ) but this contradicts 2 0 1 6 ≡ 0 ( m o d 8 ) so there are no solutions in this case.
We now consider the cases where one or more of p , q , r is equal to 2 :
Case 1: r = 2 ⟹ p + q 2 = 2 0 0 8 .
Setting q = 3 gives the solution p = 1 9 9 9 , q = 3 .
q = 3 ⟹ q ≡ 1 , 2 ( m o d 3 ) ⟹ q 2 ≡ 1 ( m o d 3 ) but as 2 0 0 8 ≡ 1 ( m o d 3 ) this would mean p ≡ 0 ( m o d 3 ) ⟹ p = 3 but this yields no solution.
Case 2: q = 2 ⟹ p + r 3 = 2 0 0 4
This restricts 2 ≤ r ≤ 1 2 giving us 5 cases to check yielding p = 1 6 6 9 , r = 7 .
Case 3: p = 2 ⟹ q 2 + r 3 = 2 0 0 6 .
Firstly we can check q , r = 7 . Now we have q 2 ≡ 1 , 2 , 4 ( m o d 7 ) and r 3 ≡ 1 , 6 ( m o d 7 ) . As we have 2 0 0 6 ≡ 4 ( m o d 7 ) it is quick to check none of these pairs of residues will yield a solution.
The only solutions are ( p , q , r ) = ( 1 9 9 9 , 3 , 2 ) , ( 1 6 6 9 , 2 , 7 ) so in total there are 2 solutions .