Given that a and b are positive integers such that the difference between a 2 + b and a + b 2 is prime , find the value of ( a + b ) 2 .
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.
Exactly how I did it! +1 Sorry my solution posted just a little later due to bad wifi connection..
WLOG a 2 + b > a + b 2 :
( a 2 + b ) − ( a + b 2 ) = a 2 − b 2 − ( a − b ) = ( a − b ) ( a + b − 1 ) ⇒ prime
All primes have 2 factors: 1 and itself, therefore one of the factors must be 1:
a − b < a + b − 1 therefore a − b = 1 → a = b + 1
Substituting this: ( ( b + 1 ) − b ) ( ( b + 1 ) + b − 1 ) = ( 1 ) ( 2 b ) = 2 b → p r i m e
The only multiple of 2 which is prime is 2 itself; therefore b = 1
a = b + 1 → a = 2
Therefore ( a + b ) 2 = 9
Problem Loading...
Note Loading...
Set Loading...
( a 2 + b ) − ( a + b 2 ) = ( a − b ) ( a + b − 1 ) = Z
For Z to be a prime, one out of a − b or a + b − 1 must be 1 . Setting a + b − 1 = 1 gives a = b = 1 and hence Z = 0 which is not a prime , hence rejected. Now let's take a − b = 1 or a = b + 1 while a + b − 1 = ( b + 1 ) + b − 1 = 2 b and its obvious that 2 b is a prime only when b = 1 and hence a = b + 1 = 2 while Z = ( 1 ) ( 2 ) = 2 .
∴ ( 1 + 2 ) 2 = 9