Right now I have a problem with one mathematical problem that has been troubling me. What I need to do is to find values of x and y for which x and y are whole numbers. The equation is:

6xy - x - y - 6142 = 0

My friend tells me that it is impossible to solve without having the another equation (which I could not derive). So the only method left is to use "trial and error" which is pretty time consuming.

So my question now is whether there is a better method than "trial and error" for the finding the values of x and y which are whole numbers for the above equation.

PS: The negative values of x and y are of no importance to me, though I know they exist. If anyone need a graph of the equation, I can post it.

6xy - x - y - 6142 = 0

My friend tells me that it is impossible to solve without having the another equation (which I could not derive). So the only method left is to use "trial and error" which is pretty time consuming.

So my question now is whether there is a better method than "trial and error" for the finding the values of x and y which are whole numbers for the above equation.

PS: The negative values of x and y are of no importance to me, though I know they exist. If anyone need a graph of the equation, I can post it.

I would think that you would pick a value for x and solve for y, or pick a value for y and solve for x. It's an equation that will have many correct answers.

Just a guess.

Just a guess.

It seems like your equation is a kind of diophantine eq. Search for it!:)

And please post your graph.

And please post your graph.

Djnn,

For your method, you just need to "try" a value of x (whole number) and see if y is a whole number. But isn't this the "trial and error" I spoke of. It just too time consuming if your number has over 100 digits.

inFinie,

Interesting, I have never heard of a diophantine equation, I will try to do some research on it. Thanks for sheding some light to me anyway. Here's the graph for the equation, sure it does look like 1/x graph

For your method, you just need to "try" a value of x (whole number) and see if y is a whole number. But isn't this the "trial and error" I spoke of. It just too time consuming if your number has over 100 digits.

inFinie,

Interesting, I have never heard of a diophantine equation, I will try to do some research on it. Thanks for sheding some light to me anyway. Here's the graph for the equation, sure it does look like 1/x graph

I think that the diophantine equasion was the try-method you specified :)

I studied it in 4th grade, I don't remember it now :grin:

I studied it in 4th grade, I don't remember it now :grin:

y=(6142+x)/(6x-1)

y=(6142 5/6)/(6x-1)+1/6

6y-1=36851/(6x-1)

The only to solve this is by factoring 36851. If you get at least two factors who can be written as 6n-1, you can get all the solutions by combining them with the remaining factors.

y=(6142 5/6)/(6x-1)+1/6

6y-1=36851/(6x-1)

The only to solve this is by factoring 36851. If you get at least two factors who can be written as 6n-1, you can get all the solutions by combining them with the remaining factors.

Here's the graph for the equation, sure it does look like 1/x graph

Well not really. Not sure where or how you obtained it, but its really the shape of the solution (an may even be the solution, didnt test with a point from your graph).

Your equation is what is called a "Parametric Equation". Its a function of many variables. To solve this takes partial derivatives, and some vector math with the gradiant function. Been a couple years since i've done this and am not going to try now (will take me all night to refresh those forgotten skills ;) ).

So in short, i will instead show you the true graph to your question below:

z = 6xy - x - y - 6142 = 0 is your problem. Find a function of x,y such z = 0. Or in other terms, F(x,y,z) = 6xy - x - y - 6142 - z. This is a 3D plot!

When you rotate it on the corner between x and y and look parallel to the (x,y) plane you will see:

If you now look a the 0 value on the Z axis it cuts through the edges and misses the center of the surface. if you were to take a SLICE at z = 0 on the shown image(s) you will end up with a 2 dimentions plot similar to your origional graph.

Weather or not you plot is the slice at the Z = 0 is yet to be determined by me. But eazy to check. pick any point on the curve. And stuff its values into the origional equation. If the answer is 0 you have your solution set (any point on the curve).

Regards,

:NaN:

Weather or not you plot is the slice at the Z = 0 is yet to be determined by me. But eazy to check. pick any point on the curve. And stuff its values into the origional equation. If the answer is 0 you have your solution set (any point on the curve).

Regards,

:NaN:

NaN, the problem is to find a solution such that X and Y are whole numbers.

Which is the same as all the graph points (x, y, 0) where x and y are both whole numbers.

Since the original problem equation had "=0" in it and only x and y, the problem can also be restated as finding the zeros of z = f(x,y). Which is the "slice" at z=0. Which is what roticv's graph shows.

There are approximately 6100 integers between 0 and 36853 of the form 6x-1. The solution is easily brute forced with a computer. (Are we allowed to do this?) Pick an x, solve for y, if y is an integer, (x, y) is one solution. Because of symmetry, (y, x) is also a solution.

Since the original problem equation had "=0" in it and only x and y, the problem can also be restated as finding the zeros of z = f(x,y). Which is the "slice" at z=0. Which is what roticv's graph shows.

There are approximately 6100 integers between 0 and 36853 of the form 6x-1. The solution is easily brute forced with a computer. (Are we allowed to do this?) Pick an x, solve for y, if y is an integer, (x, y) is one solution. Because of symmetry, (y, x) is also a solution.

Iblis, whats your point? What i outlined above will give you such, if one exists.

Hey guys, thanks for your reply, I will think about them.