Math Puzzle: Integer Points
pratikpoddarcse.blogspot.in
pratikpoddarcse.blogspot.in
Let the two points be (x1, y1) and (x2, y2) such that x1 % 2 == x2 % 2 and y1 % 2 == y2 % 2, i.e., have the same parity.
Then x1 + x2 = 2 * x3 (is even) and y1 + y2 = 2 * y3 (is even), and (x3, y3) is an integer point.
Given five points, two such points must exist because of the pigeon hole principle.
(even, even), (even, odd), (odd, even), (odd, odd)
Among five points two must have the same parity.Between two points of same parity the difference has the parity (even, even).
As (even, even) is divisible by two there's an integer midpoint.
Diagram:
_OO
O_O
OO_
e: oh, not a point in the original set, any integer point. thanks!
Pick 5 random points on an infinite plane. Draw lines between all of them. One of those lines will contain another integer point. Prove this is true for every set of 5 random points.
Take two arbitrary points, named A and B, where Ax < Bx (if Ax == Bx, this becomes absurdly simple).
Calculate the delta ∂ between the points, such that ∂x = Bx - Ax and ∂y = By - Ay
Define a third point C such that Cx = Bx + ∂x and Cy = By + ∂y.
C is integral, and is colinear with A and B.
No doubt you've doodled this shape in your graph paper before: http://i.imgur.com/oY29sBc.png
What function does this slope approximate? It almost a circle, but not quite.
Consider the function l(t) which gives the appropriate line function f(x) for the line going through (t,0). The function we are looking for can then be defined as c(x) := max(l(t)(x), t in (0;1]). Just solve for t and pop it into l(t), et voila.
All lines go through (t,0) and (0,1-t). Now take two such lines, one with constant t and another with constant s and find their intersection. We have:
y = 1-t - (1-t)/t * x
y = 1-s - (1-s)/s * x
So: 1-t - (1-t)/t * x = 1-s - (1-s)/s
s-t = (s-t)/(st) * x
So: x = st
The points on the curve will be generated by the intersection of two almost adjacent lines (this is easy to see geometrically), so we take s =~ t. Then we have: x = t^2
y = (1-t)^2
So we have: y = (1 - sqrt(x))^2
Or, my favorite form: sqrt(x) + sqrt(y) = 1y - j = ((m - j) / (l - i)) * (x - i)
Choose x = k * (l - i) + i y = k*(m - j) + j Since i, j, l, m, k are all integers we obtain another integer point. No need 5 points... I may misunderstand the question. :(
http://farm9.staticflickr.com/8114/8661127874_f9269f0ee5_b.j...
Is there something I'm missing?
So comprehensive testing is what you are missing :-)
Deleted comment
Deleted comment
example: 5th point (11,4). Choose line with slope 10:4. Divisible by 2, this line passes through the point (5,2). A ratio divisible by 3 would pass through 2 additional points etc.
Deleted comment
(4,2)/2 = (2,1)
(2,1) + (1,0) = (3,1)
Show that we can always find 2 among these 5 integer points such that the line segment joining the 2 points contains at least 1 more integer point."
I am not sure what you mean. I have 'arbitrarily' picked 5 integer points on a plane. Yes, they happen to lie on line. All their line segments contain only these integer points.
Perhaps you mean that is line not on "a plane"? In that case (0,0), (0,1), (0,2), (0,3), (0,1) is another counter example.
So, now the problem is, for any positive integer n, given any 2^n + 1 n-tuples of integers, at least two of these n-tuples if added have all even components.