Last visit was: 19 Nov 2025, 15:51 It is currently 19 Nov 2025, 15:51
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
axl_oz
Joined: 01 Feb 2005
Last visit: 14 Dec 2010
Posts: 159
Own Kudos:
468
 [397]
Given Kudos: 1
Posts: 159
Kudos: 468
 [397]
40
Kudos
Add Kudos
355
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 19 Nov 2025
Posts: 105,390
Own Kudos:
Given Kudos: 99,977
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,390
Kudos: 778,368
 [108]
51
Kudos
Add Kudos
56
Bookmarks
Bookmark this Post
User avatar
agrchandan
Joined: 15 Jan 2013
Last visit: 22 May 2013
Posts: 11
Own Kudos:
98
 [53]
Given Kudos: 6
Concentration: Finance, Operations
GPA: 4
Posts: 11
Kudos: 98
 [53]
40
Kudos
Add Kudos
13
Bookmarks
Bookmark this Post
User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 19 Nov 2025
Posts: 16,267
Own Kudos:
77,001
 [36]
Given Kudos: 482
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,267
Kudos: 77,001
 [36]
22
Kudos
Add Kudos
14
Bookmarks
Bookmark this Post
surya167
Brunel and all,

Is it a rule to apply one value as zero whenever it is given:

1) Both x and y are non-negative integers
2) we need to find the max value of x-y

What if we are asked to find the min ? how do we solve those questions and also, what would be the approach for min and max value of x+y ? Can u guys pls advise?

Usually, when you are checking for numbers, you do check for 0. It's often a transition point for patterns. Secondly, the question used the term 'non-negative integers' instead of 'positive integers' - this means 0 would probably have a role to play.
There are no such rules but common sense says that we must not ignore 0.

Also, this question doesn't really test max min concepts. It is a direct application of your understanding of exponential relations.

Now, when we look at the equation, 2^x + 2^y = x^2 + y^2, some things come to mind:
1. It is not very easy to find values that satisfy this equation.
2. But there must be some values which satisfy since we are looking for a value of |x – y|
3. If x = y = 2, the equation is satisfied since all terms become equal and |x – y| = 0 which is the minimum value of |x – y|.

Usually, the left hand side will be greater than the right hand side (as discussed in the post, 2^n will usually be greater than x^2 except in very few cases). So we must focus on those 'very few cases'. Also, we need to make x and y unequal.

We know (from the post) that 2^4 = 4^2 is one solution so we could put x = 4 while keeping y = 2. The equation will be satisfied and |x – y| = 2

Now, we also know that 2^x < x^2 when x = 3. So is there a solution there as well? The difference between 2^3 and 3^2 is of 1 so can we create a difference of 1 between the other two terms? Sure! If y = 0, then 2^0 = 1 but 0^2 = 0.
So another solution is 2^3 + 2^0 = 3^2 + 0^2.
Here, |x – y| = 3 which is the maximum difference.

The reason we can be sure that there are no other values is that as you go ahead of 4 on the number line, 2^n will be greater than n^2 (again, discussed in the post). So both left hand side terms will be greater than the right hand side terms i.e. 2^x > x^2 and 2^y > y^2. So, for no other values can we satisfy this equation.

Answer (D)
General Discussion
User avatar
CoIIegeGrad09
Joined: 12 Oct 2009
Last visit: 20 Jun 2010
Posts: 8
Own Kudos:
8
 [2]
Given Kudos: 1
Posts: 8
Kudos: 8
 [2]
Kudos
Add Kudos
2
Bookmarks
Bookmark this Post
Great Problem! Since your trying to find the greatest value of X-Y, you just have to assume that Y=0, like Bunel said and then use the "hit and trial" approach like xcusem... Said. The algebratic approach is great too, but I know for me personally it opens up the opportunity for me to make silly mistakes. So I try to not use it unless necessary.

Posted from my mobile device
User avatar
surya167
Joined: 14 Aug 2005
Last visit: 16 Nov 2014
Posts: 51
Own Kudos:
Given Kudos: 2
Posts: 51
Kudos: 24
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Brunel and all,

Is it a rule to apply one value as zero whenever it is given:

1) Both x and y are non-negative integers
2) we need to find the max value of x-y

What if we are asked to find the min ? how do we solve those questions and also, what would be the approach for min and max value of x+y ? Can u guys pls advise?
User avatar
galiya
Joined: 16 Jan 2011
Last visit: 08 Jan 2018
Posts: 72
Own Kudos:
846
 [16]
Given Kudos: 15
Posts: 72
Kudos: 846
 [16]
14
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
the expression |x-y| to reach its maximum we need y to be 0. Hence, we need to find X.

therefore, 2^x+2^y=x^2+^2 --> 2^x+1=x^2 what means that x is odd. Only 3 satisfies this equation: 2^3+1=3^2.
Hence, x must be equal 3
avatar
misanguyen2010
Joined: 25 Oct 2013
Last visit: 12 Sep 2015
Posts: 14
Own Kudos:
20
 [1]
Given Kudos: 89
Posts: 14
Kudos: 20
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Bunuel
misanguyen2010
axl_oz
If 2^x + 2^y = x^2 + y^2, where x and y are nonnegative integers, what is the greatest possible value of |x – y|?

(A) 0
(B) 1
(C) 2
(D) 3
(E) 4

This is a challenge problem on MGMAT. I do not have the answer to the question... But on solving the problem I got the answer of 2 (not sure if it is right)

my answer:
|x – y| for x and y 2^x + 2^y = x^2 + y^2
A. x= y x=y=1 2 + 2 = 1 + 1 wrong
B. 1 x=2, y=1 4 + 2 = 4 + 1 wrong
C. 2 x=3, y=1 8 + 2 = 9 + 1 right
D. 3 x=4, y =1 16 + 2 = 16 + 1 wrong
E. 4 x=5, y =1 32 + 2 = 25 + 1 wrong

My answer is C.

Please note that the correct answer is D, not C.

Hi thank you for your reply.
I explained what i confused. Of course I read previous answers and all chose D.
However, from what i found, i chose C. That s why i posted here. I dont know which is wrong in my answer.
Please help!
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 19 Nov 2025
Posts: 105,390
Own Kudos:
778,368
 [3]
Given Kudos: 99,977
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,390
Kudos: 778,368
 [3]
2
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
misanguyen2010
Bunuel
misanguyen2010
my answer:
|x – y| for x and y 2^x + 2^y = x^2 + y^2
A. x= y x=y=1 2 + 2 = 1 + 1 wrong
B. 1 x=2, y=1 4 + 2 = 4 + 1 wrong
C. 2 x=3, y=1 8 + 2 = 9 + 1 right
D. 3 x=4, y =1 16 + 2 = 16 + 1 wrong
E. 4 x=5, y =1 32 + 2 = 25 + 1 wrong

My answer is C.

Please note that the correct answer is D, not C.

Hi thank you for your reply.
I explained what i confused. Of course I read previous answers and all chose D.
However, from what i found, i chose C. That s why i posted here. I dont know which is wrong in my answer.
Please help!

To get the greatest value of |x-y| as 3 consider x=3 and y=0. Notice that these values satisfy \(2^x + 2^y = x^2 + y^2\) --> \(2^3 + 2^0 =9= 3^2 + 0^2\).

Hope it helps.
User avatar
VikashAlex
Joined: 22 Sep 2014
Last visit: 05 Jan 2016
Posts: 29
Own Kudos:
285
 [2]
Given Kudos: 12
Posts: 29
Kudos: 285
 [2]
Kudos
Add Kudos
2
Bookmarks
Bookmark this Post
[quote="dharam831"]If 2^x + 2^y = x^2 + y^2, where x and y are non-negative integers, what is the greatest possible value of |x – y|?

(A) 0
(B) 1
(C) 2
(D) 3
(E) 4

hi,

It is given that |x-y| should be maximize and both x and y can not be negative (they are non-negative integers). This means to maximize |x-y| y value should be zero.
Now if y=0, then the equation will be :
2^x + 2^0 = x^2 + 0^2
=> 2^x +1 = x^2
=> x^2 - 2^x = 1
This is possible in only one condition when 3^2 - 2^3. and hence x = 3.
So, maximum value of |x-y| is |3-0| = 3 Ans(D).
User avatar
EMPOWERgmatRichC
User avatar
Major Poster
Joined: 19 Dec 2014
Last visit: 31 Dec 2023
Posts: 21,784
Own Kudos:
12,807
 [1]
Given Kudos: 450
Status:GMAT Assassin/Co-Founder
Affiliations: EMPOWERgmat
Location: United States (CA)
GMAT 1: 800 Q51 V49
GRE 1: Q170 V170
Expert
Expert reply
GMAT 1: 800 Q51 V49
GRE 1: Q170 V170
Posts: 21,784
Kudos: 12,807
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Hi All,

This question is layered with clues to help us solve it, but the work that we'll do is more "brute force" than anything else.

We're given 3 pieces of information:

1: 2^x+2^y=x^2+y^2
2: X and Y are NON-NEGATIVE integers (this means that they're either 0 or positive)
3: The answers are small integers (0 - 4, inclusive)

We're asked for the GREATEST possible value of |X-Y|…..

From the answers, we know that X and Y have to be relatively "close" on the number line. Next, the phrase "non-negative" is interesting - it gets me thinking that one of the values is probably going to be 0.

Now, let's do a few brute force calculations so we can see the results:

2^0 = 1
2^1 = 2
2^2 = 4
2^3 = 8
2^4 = 16

0^2 = 0
1^2 = 1
2^2 = 4
3^2 = 9
4^2 = 16

According to the given equation, we need to sum two values from the first list and sum the two corresponding values from the second list (and have the results equal one another). There are a couple of ways to do that, but we want the GREATEST possible difference between X and Y….

If X = 3 and Y = 0, then we'd have

2^x+2^y=x^2+y^2
8 + 1 = 9 + 0
9 = 9

|3 - 0| = 3

Final Answer:

GMAT assassins aren't born, they're made,
Rich
User avatar
mSKR
Joined: 14 Aug 2019
Last visit: 10 Mar 2024
Posts: 1,290
Own Kudos:
Given Kudos: 381
Location: Hong Kong
Concentration: Strategy, Marketing
GMAT 1: 650 Q49 V29
GPA: 3.81
GMAT 1: 650 Q49 V29
Posts: 1,290
Kudos: 938
Kudos
Add Kudos
Bookmarks
Bookmark this Post
using graph
y can only be zero as minimum value for maximum contribution in |x-y|

lets see what could be max value of x ; now set y=0

2^x+ 1= x^2
if x=0 then LHS>RHS
if x=1LHS>RHS
if x=2 LHS>RHS
if x=3
9 = 3^2

Hence X= 3

final value of mode |x-y| = 3-0= 3

hence final answer D

Bunuel VeritasKarishma @chetan4u zhanbo please comment on this approach
Attachments

graph.png
graph.png [ 10.68 KiB | Viewed 16143 times ]

User avatar
KarishmaB
Joined: 16 Oct 2010
Last visit: 19 Nov 2025
Posts: 16,267
Own Kudos:
77,001
 [1]
Given Kudos: 482
Location: Pune, India
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 16,267
Kudos: 77,001
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
mSKR
using graph
y can only be zero as minimum value for maximum contribution in |x-y|

lets see what could be max value of x ; now set y=0

2^x+ 1= x^2
if x=0 then LHS>RHS
if x=1LHS>RHS
if x=2 LHS>RHS
if x=3
9 = 3^2

Hence X= 3

final value of mode |x-y| = 3-0= 3

hence final answer D

Bunuel VeritasKarishma @chetan4u zhanbo please comment on this approach

Yes, familiarity with relation between 2^x and x^2 helps.
We know that the graph of 2^x lies below x^2 for very few values.
There are two points where the two graphs intersect, x = 2 and x = 4.

Between 2 and 4, 2^x < x^2.
So 2^x can be less than x^2 (if 2^x must be equal to x^2 - 1) only between 2 and 4.

Put x = 3 and we get 2^3 = x^2 + 1.

Check: https://www.gmatclub.com/forum/veritas-prep-resource-links-no-longer-available-399979.html#/2013/01 ... cognition/
User avatar
Nabneet
Joined: 27 Dec 2022
Last visit: 19 Aug 2024
Posts: 105
Own Kudos:
119
 [2]
Given Kudos: 40
Location: India
GMAT 1: 550 Q47 V20
WE:Other (Other)
GMAT 1: 550 Q47 V20
Posts: 105
Kudos: 119
 [2]
1
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
axl_oz
If 2^x + 2^y = x^2 + y^2, where x and y are nonnegative integers, what is the greatest possible value of |x – y|?

(A) 0
(B) 1
(C) 2
(D) 3
(E) 4

This is a challenge problem on MGMAT. I do not have the answer to the question... But on solving the problem I got the answer of 2 (not sure if it is right)


My take on this question,
\(2^x + 2^y = x^2 + y^2\)
\(2^x + 2^y = x^2 + y^2 -2xy +2xy \)
\(2^x + 2^y -2xy = (x-y)^2\)

Square root both sides,
\(\sqrt{2^x + 2^y -2xy} = |x-y| (\sqrt{x^2} = |x|)\)

For RHS to be maximum, y= 0 or -ve(not possible)

\(\sqrt{2^x + 2^y -2xy} \)
\(\sqrt{2^x + 2^0}\)
\(\sqrt{2^x + 1}\)

only perfect square possible is when x=3
\(\sqrt{2^3 + 1}\)
\(\sqrt{9}\)

|x-y| = 3

Bunuel Can this be done in this way ?

Option D
User avatar
GMATBusters
User avatar
GMAT Tutor
Joined: 27 Oct 2017
Last visit: 14 Nov 2025
Posts: 1,924
Own Kudos:
Given Kudos: 241
WE:General Management (Education)
Expert
Expert reply
Posts: 1,924
Kudos: 6,647
Kudos
Add Kudos
Bookmarks
Bookmark this Post
It is imortant to note that x or y will never be negative integer as it will make the LHS non integer, except when both x and y are -1.
However, (x,y) = (-1,-1) doesnt satisy the equation.

Hence, x and y are positive integer. now We can maximize by making one integer 0.

if y is zero, 2^x +1 = x^2 clearly x = 3 satisfies the equation and hence 3 is max value of mod(x-y) when (x,y)= (3,0)

P.S x = 4 doesnt satisfy the equation. ;)
axl_oz
If 2^x + 2^y = x^2 + y^2, where x and y are nonnegative integers, what is the greatest possible value of |x – y|?

(A) 0
(B) 1
(C) 2
(D) 3
(E) 4

This is a challenge problem on MGMAT. I do not have the answer to the question... But on solving the problem I got the answer of 2 (not sure if it is right)­
­
User avatar
lnyngayan
Joined: 09 Mar 2023
Last visit: 13 Oct 2024
Posts: 27
Own Kudos:
Given Kudos: 239
Posts: 27
Kudos: 1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Bunuel

axl_oz
If 2^x + 2^y = x^2 + y^2, where x and y are nonnegative integers, what is the greatest possible value of |x – y|?
(A) 0
(B) 1
(C) 2
(D) 3
(E) 4

This is a challenge problem on MGMAT. I do not have the answer to the question... But on solving the problem I got the answer of 2 (not sure if it is right)
Suppose you got the answer of 2 for the values of \(x\) and \(y\) as 4 and 2.

\(2^4+2^2=4^2+2^2\) --> \(|4-2|=2\)

But if we check for \(y=0\), we'll get:

\(2^x+2^0=x^2+0^2\) --> \(2^x+1=x^2\) --> \(2^x=(x-1)(x+1)\) --> \(x=3\)

\(2^3+2^0=9=3^2+0^2\)

\(|x-y|=|3-0|=3\)

4 can not be the greatest value as when you increase \(x\) so as \(x-y\) to be \(4\), \(2^x+2^y\) will always be more than \(x^2+y^2\).
Hello! How do you get this?
\(2^x=(x-1)(x+1)\) --> \(x=3\)­
User avatar
GMATBusters
User avatar
GMAT Tutor
Joined: 27 Oct 2017
Last visit: 14 Nov 2025
Posts: 1,924
Own Kudos:
6,647
 [1]
Given Kudos: 241
WE:General Management (Education)
Expert
Expert reply
Posts: 1,924
Kudos: 6,647
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Hi

There is one step which will clarify your doubt.

\(2^x+1=x^2\)
Quote:
\(2^x=x^2-1 \)
\(2^x=(x-1)(x+1)\)

I hope it is clear. Feel free to tag me in case of any query.
lnyngayan

Bunuel

axl_oz
If 2^x + 2^y = x^2 + y^2, where x and y are nonnegative integers, what is the greatest possible value of |x – y|?
(A) 0
(B) 1
(C) 2
(D) 3
(E) 4

This is a challenge problem on MGMAT. I do not have the answer to the question... But on solving the problem I got the answer of 2 (not sure if it is right)
Suppose you got the answer of 2 for the values of \(x\) and \(y\) as 4 and 2.

\(2^4+2^2=4^2+2^2\) --> \(|4-2|=2\)

But if we check for \(y=0\), we'll get:

\(2^x+2^0=x^2+0^2\) --> \(2^x+1=x^2\) --> \(2^x=(x-1)(x+1)\) --> \(x=3\)

\(2^3+2^0=9=3^2+0^2\)

\(|x-y|=|3-0|=3\)

4 can not be the greatest value as when you increase \(x\) so as \(x-y\) to be \(4\), \(2^x+2^y\) will always be more than \(x^2+y^2\).
Hello! How do you get this?
\(2^x=(x-1)(x+1)\) --> \(x=3\)­
­
User avatar
Diegoram17
Joined: 16 Dec 2024
Last visit: 11 Nov 2025
Posts: 17
Own Kudos:
Given Kudos: 36
Location: Peru
Schools: Kelley '26
GMAT Focus 1: 615 Q82 V71 DI66
GMAT 1: 650 Q56 V55
Schools: Kelley '26
GMAT Focus 1: 615 Q82 V71 DI66
GMAT 1: 650 Q56 V55
Posts: 17
Kudos: 2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
thanks for the explanation
Moderators:
Math Expert
105390 posts
Tuck School Moderator
805 posts