by RonPurewal Tue Oct 16, 2012 2:02 am
i think i know what you're getting at here. there are quite a few data sufficiency problems in which the solutions have to be whole numbers -- usually because of circumstances that arise naturally from a word problem (e.g., you can't have non-whole numbers of boys and girls) -- and you're looking for a shortcut that will get you out of having to test cases.
the problem is that, in general, there is no such shortcut. (in fact, if you could find one, you would become a famous and influential mathematician overnight; many mathematicians have actually written their doctoral theses on the reasons why you can't find algebraic solutions to things like these.)
in general, you're just going to have to get out the shovel and start shoveling the dirt -- in other words, if your solutions are restricted to whole numbers, you're going to have to test cases.
just as an extra nail in the coffin of the idea that there might be some simple algebraic resolution here, consider the following two equations:
5x + 7y = 47
5x + 7y = 48
the first one has two solutions in whole numbers, (8, 1) and (1, 6). the second has only one such solution, (4, 4). there's nothing much different about the coefficients -- in both cases, they are all numbers that have no factors in common other than 1. but the results are different nonetheless.
on the bright side, testing cases really doesn't take long at all -- and it's infallible! if you have a literal list of cases in front of your eyes, it's impossible to fall into the kind of traps that can ensnare you if you are doing algebra.
--
of course, if the number on the right-hand side of the equation is gigantically huge, then it can become obvious that there are multiple solutions.
for instance, if i give you 5x + 7y = 10,000, then it should be clear that you can find a whole lot of different pairs of x and y that will solve that one. (if that's not clear, think about the fact that 5x + 7y will have the same value if you increase x by 7 and decrease y by 5, or vice versa.)