A number theory problem by Eamon Gupta

Given that a a and b b are positive integers such that the difference between a 2 + b a^2+b and a + b 2 a+b^2 is prime , find the value of ( a + b ) 2 (a+b)^2 .


The answer is 9.

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

Rishabh Jain
Jun 9, 2016

( a 2 + b ) ( a + b 2 ) = ( a b ) ( a + b 1 ) = Z (a^2+b)-(a+b^2)=(a-b)(a+b-1)=\mathfrak Z

For Z \mathfrak Z to be a prime, one out of a b a-b or a + b 1 a+b-1 must be 1 1 . Setting a + b 1 = 1 a+b-1=1 gives a = b = 1 a=b=1 and hence Z = 0 \mathfrak Z=0 which is not a prime , hence rejected. Now let's take a b = 1 a-b=1 or a = b + 1 a=b+1 while a + b 1 = ( b + 1 ) + b 1 = 2 b a+b-1=(b+1)+b-1=2b and its obvious that 2 b 2b is a prime only when b = 1 b=1 and hence a = b + 1 = 2 a=b+1=2 while Z = ( 1 ) ( 2 ) = 2 \mathfrak Z=(1)(2)=2 .

( 1 + 2 ) 2 = 9 \large \therefore (1+2)^2=\boxed{\color{#007fff}{9}}

Exactly how I did it! +1 Sorry my solution posted just a little later due to bad wifi connection..

Eamon Gupta - 5 years ago

Log in to reply

No problem.... :-)

Rishabh Jain - 5 years ago
Eamon Gupta
Jun 9, 2016

WLOG a 2 + b > a + b 2 a^2+b > a+b^2 :

( a 2 + b ) ( a + b 2 ) = a 2 b 2 ( a b ) = ( a b ) ( a + b 1 ) prime (a^2+b)-(a+b^2) = a^2-b^2-(a-b)=(a-b)(a+b-1) \Rightarrow \text{prime}

All primes have 2 factors: 1 and itself, therefore one of the factors must be 1:

a b < a + b 1 a-b<a+b-1 therefore a b = 1 a = b + 1 a-b = 1 \rightarrow a= b+1

Substituting this: ( ( b + 1 ) b ) ( ( b + 1 ) + b 1 ) = ( 1 ) ( 2 b ) = 2 b p r i m e ((b+1)-b)((b+1)+b-1) = (1)(2b)=2b \rightarrow prime

The only multiple of 2 which is prime is 2 itself; therefore b = 1 \boxed{b=1}

a = b + 1 a = 2 a = b + 1 \rightarrow \boxed{a=2}

Therefore ( a + b ) 2 = 9 (a+b)^2=\boxed{9}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...