Integer midpoint | the useless stuff
Given 5 points as (x,y), all x's and y's are integers, prove or disprove that there exists at lease one pair of points whose midpoint's coordinates are also integers.
Suppose you have five points viz. (3,4), (9,7), (4,12), (10,9) and (5,6). Here mid point of (3,4) and (5,6) is (4,5) which has integer coordinates. You can chose any arbitrary 5 points and see at least one pair has midpoint whose coordinates are also integers.
Proof is very trivial. if (x1,y1) and (x2,y2) are two points then their midpoint is ((x1+x2)/2, (y1+y2)/2). So for it to be integer, both (x1+x2) and (y1+y2) have to be even numbers. This is possible iff both x1,x2 and y1,y2 pairs are even-even or both are odd-odd.
Now, coordinates of any point must belong to any one of the following four category – {odd,odd}, {odd,even}, {even,odd}, {even,even}.
In the worst case four out of five points will lie in four different categories. Even then, the 5th point must belong to one which already has one point in it. So, even in the worst possible scenario, we have a pair of points whose x's and y's are pairwise odd/even. Hence the proof.
Read full article from Integer midpoint | the useless stuff
No comments:
Post a Comment