Triple Primes Equation

p + q 2 + r 3 = 2016 \large p+q^2+r^3=2016

How many triplets of primes ( p , q , r ) (p,q,r) satisfy the above equation?

0 1 2 3 4 5 6 7

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

Sam Bealing
Jun 30, 2016

Relevant wiki: General Diophantine Equations - Problem Solving

We begin by considering p , q , r 2 p,q,r \neq 2 which means p , q , r 1 , 3 , 5 , 7 ( m o d 8 ) p,q,r \equiv 1,3,5,7 \pmod{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 ) r \equiv 1,3,5,7 \pmod{8} \implies r^3 \equiv 1,3,5,7 \pmod{8} and hence p + r 3 p+r^3 will leave an even residue ( m o d 8 ) \pmod{8} as odd + odd = even \text{odd}+\text{odd}=\text{even} .

We have q 1 , 3 , 5 , 7 ( m o d 8 ) q 2 1 ( m o d 8 ) q \equiv 1,3,5,7 \pmod{8} \implies q^2 \equiv 1 \pmod{8} . This means p + q 2 + r 3 p+q^2+r^3 leaves an odd residue ( m o d 8 ) \pmod{8} but this contradicts 2016 0 ( m o d 8 ) 2016 \equiv 0 \pmod{8} so there are no solutions in this case.

We now consider the cases where one or more of p , q , r p,q,r is equal to 2 2 :

Case 1: r = 2 p + q 2 = 2008 r=2 \implies p+q^2=2008 .

Setting q = 3 q=3 gives the solution p = 1999 , q = 3 p=1999,q=3 .

q 3 q 1 , 2 ( m o d 3 ) q 2 1 ( m o d 3 ) q \neq 3 \implies q \equiv 1,2 \pmod{3} \implies q^2 \equiv 1 \pmod{3} but as 2008 1 ( m o d 3 ) 2008 \equiv 1 \pmod{3} this would mean p 0 ( m o d 3 ) p = 3 p \equiv 0 \pmod{3} \implies p=3 but this yields no solution.

Case 2: q = 2 p + r 3 = 2004 q=2 \implies p+r^3=2004

This restricts 2 r 12 2 \leq r \leq 12 giving us 5 5 cases to check yielding p = 1669 , r = 7 p=1669,r=7 .

Case 3: p = 2 q 2 + r 3 = 2006 p=2 \implies q^2+r^3=2006 .

Firstly we can check q , r 7 q,r \neq 7 . Now we have q 2 1 , 2 , 4 ( m o d 7 ) q^2 \equiv 1,2,4 \pmod{7} and r 3 1 , 6 ( m o d 7 ) r^3 \equiv 1,6 \pmod{7} . As we have 2006 4 ( m o d 7 ) 2006 \equiv 4 \pmod{7} it is quick to check none of these pairs of residues will yield a solution.

The only solutions are ( p , q , r ) = ( 1999 , 3 , 2 ) , ( 1669 , 2 , 7 ) (p,q,r)=(1999,3,2),(1669,2,7) so in total there are 2 solutions \boxed{\boxed{2 \text{ solutions}}} .

Moderator note:

Great approach considering modular arithmetic.

Since all of these terms are positive, we can bound the value of r < 13 r <13 , 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?

Mehul Arora - 4 years, 11 months ago

Log in to reply

I have a shorter solution.

Khang Nguyen Thanh - 4 years, 11 months ago

Log in to reply

Could you please upload your solution?

Mehul Arora - 4 years, 11 months ago

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.

Sam Bealing - 4 years, 11 months ago

We have r 3 2016 r^3\le 2016 , yeilds r 12 r\le12 . So we consider 5 following cases:

Case 1 : r = 11 r=11 , so p + q 2 = 685 p+q^2=685 . Hence p p or q q must be equal to 2 2 .

If p = 2 p=2 then q 2 = 683 q^2=683 , which is impossible.

If q = 2 q=2 then p = 681 = 3 227 p=681=3\cdot227 , which is not a prime.

Case 2 : r = 7 r=7 , so p + q 2 = 1673 p+q^2=1673 . Hence p p or q q must be equal to 2 2 .

If p = 2 p=2 then q 2 = 1671 q^2=1671 , which is impossible.

If q = 2 q=2 then p = 1669 p=1669 , which is a prime. We get ( p , q , r ) = ( 1669 , 2 , 7 ) \boxed{(p,q,r)=(1669,2,7)} is a solution.

Case 3 : r = 5 r=5 , so p + q 2 = 1891 p+q^2=1891 . Hence p p or q q must be equal to 2 2 .

If p = 2 p=2 then q 2 = 1889 q^2=1889 , which is impossible.

If q = 2 q=2 then p = 1887 = 3 629 p=1887=3\cdot629 , which is not a prime.

Case 4 : r = 3 r=3 , so p + q 2 = 1989 p+q^2=1989 . Hence p p or q q must be equal to 2 2 .

If p = 2 p=2 then q 2 = 1987 q^2=1987 , which is impossible.

If q = 2 q=2 then p = 1985 = 5 397 p=1985=5\cdot397 , which is not a prime.

Case 5 : r = 2 r=2 , so p + q 2 = 2008 p+q^2=2008 .

If q 3 q\ne 3 then q 2 1 ( m o d 3 ) q^2\equiv 1\ (\bmod{3}) , yeilds p 0 ( m o d 3 ) p\equiv 0\ (\bmod{3}) . Hence, p = 3 p=3 then q 2 = 2005 q^2=2005 , which is impossible.

If q = 3 q=3 then p = 1999 p=1999 , which is a prime. We get ( p , q , r ) = ( 1999 , 3 , 2 ) \boxed{(p,q,r)=(1999,3,2)} is a solution.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...