Last visit was: 22 Apr 2026, 15:44 It is currently 22 Apr 2026, 15:44
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
banerjeea_98
Joined: 18 Nov 2004
Last visit: 17 May 2012
Posts: 674
Own Kudos:
Posts: 674
Kudos: 201
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
Tyr
Joined: 22 Apr 2005
Last visit: 18 May 2008
Posts: 75
Own Kudos:
Location: Los Angeles
Posts: 75
Kudos: 5
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
MA
Joined: 25 Nov 2004
Last visit: 09 Aug 2011
Posts: 695
Own Kudos:
Posts: 695
Kudos: 533
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
Tyr
Joined: 22 Apr 2005
Last visit: 18 May 2008
Posts: 75
Own Kudos:
Location: Los Angeles
Posts: 75
Kudos: 5
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Here is a bit of theory for you.

Diophantine equation of type 1 is

Ax + By = C

Finding one solution x0, y0 to this equation gives us all solutions.

x(t) = x0 - Bt
y(t) = y0 + At

Where t is an integer variable.

If you are given constrains m <= x < = M and n <= y <= N you know that x(t) will be decreasing with t growing and y(t) will be growing.
Compare A and B to find out who will be growing/decreasing faster and pick (x0,y0) solution accordinly so that x0 is the closed integer to M from the bottom or y0 is the closed integer to n from the top.
After that find out maximum t so that x(t) or y(t) is still with the interval of the given constrain. Count values for t, check that the other part is still in the constrain.



Archived Topic
Hi there,
This topic has been closed and archived due to inactivity or violation of community quality standards. No more replies are possible here.
Where to now? Join ongoing discussions on thousands of quality questions in our Problem Solving (PS) Forum
Still interested in this question? Check out the "Best Topics" block above for a better discussion on this exact question, as well as several more related questions.
Thank you for understanding, and happy exploring!
Moderator:
Math Expert
109754 posts