Math question

Moderator: Milldawg

User avatar
Milldawg
Zerg Defiler Nutritionist
Zerg Defiler Nutritionist
Posts: 729
Joined: Fri Aug 25, 2006 1:00 pm
Location: US

Math question

Post by Milldawg »

Suppose you have a curve in R2, and you suspect there might be one or more points (a, b) on the curve where a and b are both integers. Is there a quick and easy way to confirm whether there are any such points, and if so, where?

I am imagining in my mind a giant grid of sensitive dots that light up whenever the curve hits one, but I don't know how to represent that mathematically, if it's even possible. Is there a known way?

For example, the curve y=4/x. We know if we graph it that the points (1, 4), (2, 2), and (4, 1) have integers for both x- and y-coordinates, but what about a curve that's considerably more difficult to evaluate visually?
Last edited by Milldawg on Fri May 15, 2009 11:21 pm, edited 1 time in total.
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Math question

Post by IskatuMesk »

the answer is clearly 42
Gameproc
Though we stand alone, stand we shall.
User avatar
Zilla-
Protoss Dragoon Shooting Target
Protoss Dragoon Shooting Target
Posts: 993
Joined: Thu Sep 07, 2006 8:28 am

Re: Math question

Post by Zilla- »

/thread
coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am

Re: Math question

Post by coko »

Milldawg, are you asking whether or not a curve will go through integer points? (By integer I believe you imply {1, 2, 3, 4, ..,n})

So you are wondering for a sufficiently complex equation without brute-forcing every possible number can you identify integer points?

http://books.google.co.uk/books?id=HGqrZLQQwfcC

Chapter 4 should cover this conversation perfectly for you, though depends on your ability with maths, however it should be possible to just follow the proof as written to get the answer.
User avatar
Milldawg
Zerg Defiler Nutritionist
Zerg Defiler Nutritionist
Posts: 729
Joined: Fri Aug 25, 2006 1:00 pm
Location: US

Re: Math question

Post by Milldawg »

Nice, that at least seems to suggest that there exists a method, though I can't really follow it since I'm too rusty on the math.

Is there a general formula for finding the integer points on the curve y=n/x, in terms of n?
User avatar
mAc Chaos
Zerg Zergling Groomer
Zerg Zergling Groomer
Posts: 514
Joined: Mon Aug 25, 2008 10:11 am
Contact:

Re: Math question

Post by mAc Chaos »

Where's Negi?  Isn't he a math genius? :P
http://sanctuary-inc.net/
User avatar
AA7Dragoon
Protoss Khalai Missionary
Protoss Khalai Missionary
Posts: 1039
Joined: Mon May 21, 2007 10:09 am
Location: Washington, USA

Re: Math question

Post by AA7Dragoon »

^ He's polishing my knob.
I have seen the Desler.  I have tasted of his milk and honey.
User avatar
Negi
Zerg Creep Colony Landscaper
Zerg Creep Colony Landscaper
Posts: 402
Joined: Sun Aug 05, 2007 10:08 am
Location: Your Mom!

Re: Math question

Post by Negi »

It depends on the type of function.  With a simple rational function like the above, you only need to evaluate at x such that x divides 4.  If it is a polynomial rational function, split the polynomial into irreducible parts, but if the function is too complicated you have to look at harder things like varieties, etc.  But isn't this number theory?
[size=200]Post Count +1[/size]
User avatar
Milldawg
Zerg Defiler Nutritionist
Zerg Defiler Nutritionist
Posts: 729
Joined: Fri Aug 25, 2006 1:00 pm
Location: US

Re: Math question

Post by Milldawg »

SURE IS

You see, I am trying to crack the age-old problem of prime factorization of extremely large numbers ;)
User avatar
Negi
Zerg Creep Colony Landscaper
Zerg Creep Colony Landscaper
Posts: 402
Joined: Sun Aug 05, 2007 10:08 am
Location: Your Mom!

Re: Math question

Post by Negi »

um. How do you propose to do that without knowing the basics?  I mean some of the greatest minds in history have  worked on said problem and haven't been able to do it in less than exponential time. 
[size=200]Post Count +1[/size]
User avatar
Milldawg
Zerg Defiler Nutritionist
Zerg Defiler Nutritionist
Posts: 729
Joined: Fri Aug 25, 2006 1:00 pm
Location: US

Re: Math question

Post by Milldawg »

I don't expect to SUCCEED :P I'm just bored.

Anyway, my idea formed into another one. If there's an easy way to find the points of intersection of three surfaces, then it can be done. (Except I don't think there is such a way.) Consider the surfaces y=cos x and y=cos z in R3. The intersection of these two surfaces intersects the xz plane (at y=1) in a grid-like pattern of dots. If I could then intersect my curve z=2(pi)n/x with these surfaces and find the points of intersection when y=1, those points will reveal all the factors of n.

The problem with the method is that arc cos x has infinity solutions, and it seems you'd have to check them one by one, which is no faster than brute forcing it (in fact, slower).
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Math question

Post by IskatuMesk »

AA7Dragoon wrote: ^ He's polishing my knob.
That's what I like about this guy. He doesn't just beat around the bush. He beats the bush.
Gameproc
Though we stand alone, stand we shall.
coko
Terran SCV Lube Technician
Terran SCV Lube Technician
Posts: 75
Joined: Sat Apr 25, 2009 6:56 am

Re: Math question

Post by coko »

Well, the best way is to build a list of impossible areas where you know no solutions can lie. Then this greatly reduces your shape space. But yes for sufficiently complicated equations no direct method can give you the xy because no formula exists to solve that equation itself.
User avatar
Hercanic
Protoss Stargate Concierge
Protoss Stargate Concierge
Posts: 1289
Joined: Sat Aug 19, 2006 12:11 am
Contact:

Re: Math question

Post by Hercanic »

IskatuMesk wrote:
AA7Dragoon wrote: ^ He's polishing my knob.
That's what I like about this guy. He doesn't just beat around the bush. He beats the bush.
No. I don't think he's ever touched a bush in his life.
tipereth
Zerg Hydralisk Nail Stylist
Zerg Hydralisk Nail Stylist
Posts: 597
Joined: Tue Sep 19, 2006 7:37 pm

Re: Math question

Post by tipereth »

coko wrote: Well, the best way is to build a list of impossible areas where you know no solutions can lie. Then this greatly reduces your shape space. But yes for sufficiently complicated equations no direct method can give you the xy because no formula exists to solve that equation itself.
This is basically the sieve catalog idea I was talking to Milldawg about earlier. It wouldn't work because the numbers would get too big to deal with. (or big enough to make computers take for fucking ever to find primes)
Post Reply