Let S be the set of lattice points ( x , y ) with 1 ≤ x ≤ 2 0 and 1 ≤ y ≤ 3 0 . Let B ⊆ S be a subset of S such that no set of 4 vertices in B form a (non-degenerate) parallelogram. What is the largest possible number of elements in B ?
Details and assumptions
A figure is degenerate if it has 0 area.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Great generalization :) That was how I set the question initially.
Any thoughts on how to approach this for such that the vertices doesn't form a trapezoid (US definition for a quadrilateral which has 1 set of parallel lines)?
Log in to reply
If two pairs of points have the same slope between them (and aren't all collinear), they form a trapezoid. This might work.
the answer such that the vertices does not form trapezoid is 31 for this question
Log in to reply
the answer such that the vertices does not form trapezoid is 31 for this question
Don't be so sure.
Log in to reply
@Peter Byers – can you tell me any flaw in my answer
Log in to reply
@Ojas Dhiman – Peter B. gave an example with 32 points above (although it took me a few seconds to figure out why the pattern of periods had 3 upvotes).
Basically,
Rows 1 and 3 have a point in column 1.
Row 2 has 30 points.
Log in to reply
@Daniel Chiu – @Daniel C.
(although it took me a few seconds to figure out why the pattern of periods had 3 upvotes)
:)
Thanks for pointing that out. I hadn't even noticed that it had gotten votes -- actually, I don't think I've even thought about this thread since then.
BTW, as I recall I also tried doing more than 32 (for example, having 2 above, 2 below, and removing only one from the horizontal row) but it seemed to be impossible (for the given dimensions). But I didn't take the time to try and prove it.
Can you explain your thinking step by step?
It works for m , n ≥ 1 .
For any 1 ≤ y ≤ 3 0 let B y = { 1 ≤ x ≤ 2 0 ∣ ( x , y ) ∈ B } and let C j = { 1 ≤ y ≤ 3 0 ∣ ∣ B y ∣ = j } 1 ≤ j ≤ 2 0 noting that j = 1 ∑ 2 0 ∣ C j ∣ ≤ 3 0 j = 1 ∑ 2 0 j ∣ C j ∣ = ∣ B ∣ For any 2 ≤ j ≤ 2 0 and y ∈ C j , let B y = { x 1 , x 2 , … , x j } where x 1 < x 2 < ⋯ < x j . Then D y = { x k − x 1 ∣ 2 ≤ k ≤ j } is a set of j − 1 distinct numbers between 1 and 1 9 . The sets D y (for y ∈ C j and 2 ≤ j ≤ 2 0 ) must be disjoint, since otherwise we could find distinct y 1 , y 2 and distinct x 1 1 , x 1 2 ∈ B y 1 and distinct x 2 1 , x 2 2 ∈ B y 2 with the same nonzero difference ∣ x 1 1 − x 1 2 ∣ = ∣ x 2 1 − x 2 2 ∣ in D y 1 ∩ D y 2 , and hence obtain a nondegenerate parallelogram in B (with one horizontal pair of sides). Thus we deduce that j = 2 ∑ 2 0 ( j − 1 ) ∣ C j ∣ ≤ 1 9 and so ∣ B ∣ = j = 1 ∑ 2 0 j ∣ C j ∣ = j = 1 ∑ 2 0 ∣ C j ∣ + j = 2 ∑ 2 0 ( j − 1 ) ∣ C j ∣ ≤ 3 0 + 1 9 = 4 9
The set B = { ( 1 , y ) ∣ ∣ 1 ≤ y ≤ 3 0 } ∪ { ( x , 1 ) ∣ ∣ 2 ≤ x ≤ 2 0 } is a concrete example of a set B with 4 9 elements.
This argument can be generalised to m rows and n columns as well!
Note that the set S can be interpreted as a 2 0 × 3 0 rectangular grid. We shall prove by induction that for all a , b ∈ N > 1 , the largest possible number of lattice points inside any rectangular a × b grid such that no four of them form a parallelogram is a + b − 1 . For the base case, we have to show that in a 2 × 2 rectangular grid, the largest possible number of such points is 2 + 2 − 1 = 3 . This is trivial, since if we choose 4 points, we get the 2 × 2 rectangular grid itself, which is a parallelogram.
We shall now show that if our assertion is true for rectangular a × b grid and a rectangular ( a − 1 ) × b grid, it will also be true for a rectangular ( a + 1 ) × b grid. Note that if we can prove this, we will be done, since by symmetry our claim will also hold true for a rectangular a × ( b + 1 ) grid, which will complete the induction step on a and b .
We have assumed that for a rectangular a × b grid, the largest number of such points is a + b − 1 . Suppose we increase a by 1 . We have to show that we can incorporate at most 1 lattice point in our set. On the contrary, assume we can take 2 more points in our selection. We divide the ( a + 1 ) × b grid into two rectangular grids: the first grid G 1 consisting of the first a columns, and the second grid G 2 consisting of the last a columns. Note that the dimensions of each these grids is a × b , and hence can accommodate at most a + b − 1 lattice points. Also note that G 1 ∩ G 2 is a ( a − 1 ) × b rectangular grid, and can hence accommodate at most a + b − 2 lattice points. Thus, atleast 3 points must lie within either the first column or the last column. Either way, the column with the greater number of points must have at least ⌈ 2 3 ⌉ = 2 lattice points. WLOG assume the first column has more points than the last column. It is then easy to see that G 1 has more than a + b − 1 lattice points, a contradiction. This completes our induction step.
It is easy to see that equality holds when we take the a + b − 1 points in a L or I -shaped figure at the edge of the rectangular grid. Our desired answer will then be 2 0 + 3 0 − 1 = 4 9 .
... WLOG assume the first column has more points than the last column. It is then easy to see that G 1 has more than a + b − 1 lattice points, a contradiction.
The problem with this logic is that G 1 ∩ G 2 might contain fewer than a + b − 2 lattice points.
Log in to reply
Yes, sorry for that. My logic is incomplete.
We can easily exhibit a set with 4 9 elements by simply picking points having either x = 1 or y = 1 . To show that this is the best possible, suppose B is maximal and has 5 0 elements. We can assume that B contains at least one element from each column (otherwise it's easy to add some point from that column obtaining a bigger set). Subtracting these 3 0 points (one per column), there must be 2 0 more points somewhere.
The idea now is that putting a point in any column will form a line with the point that we have already selected in the previous step. The length of such a line is between 1 and 1 9 . Therefore, by pigeonhole principle, there are two columns containing lines of the same length. But that's the same as saying that the four points from those lines form a parallelogram, in contradiction with B being allowed.
Interesting problem. My first guess is that the answer is 49. Take all points where the x or y coordinate is 1. That gives you a column with 30 points, plus a row with 20, less the one point where they intersect. 30+20-1=49.. Add any other point and you get a rectangle.
If you were approaching this problem for a rectangle, as opposed to a parallelogram, the answer is not 49.
For example, in a 3 × 3 grid, you would have said 3 + 3 − 1 = 5 , but we can have 6, like so:
× × × × × ×
It is worthwhile to think about the rectangle case too.
How do you ensure this is the minimum possible? There can be numerous other cases, which might allow for a parallelogram (maybe not a rectangle).
However, that's the idea I first had in mind when I solved this problem. Your thinking is on the right track. :)
Log in to reply
Indeed. A specific equality case is easy to guess, but hard to justify.
Problem Loading...
Note Loading...
Set Loading...
We generalize the problem as follows: If counters are placed in the squares of an m × n grid, where m ≥ 2 and n ≥ 2 , then the largest number of counters that can be placed so that no four counters form a non-degenerate parallelogram is m + n − 1 .
Proof : Consider an m × n grid that contains at least m + n counters. We call a row crowded if it contains at least two counters. Let r be the number of crowded rows. There must be at least two crowded rows; otherwise, the number of counters would be at most n + ( m − 1 ) = m + n − 1 .
Each of the remaining m − r rows that are not crowded contain at most one counter, so the number of counters among all crowded rows is at least m + n − ( m − r ) = n + r .
For each crowded row, we record the distance between the leftmost counter and every other counter in the same row. Each such distance is between 1 and n − 1 .
Let a i be the number of counters in the i th crowded row. Then we record a i − 1 distances for the i th crowded row, so the total number of distances that we record is ( a 1 − 1 ) + ( a 2 − 1 ) + ⋯ + ( a r − 1 ) = a 1 + a 2 + ⋯ + a r − r , which is at least ( n + r ) − r = n .
Hence, by the Pigeonhole Principle, two of the distances that we recorded are equal. The four counters that correspond to these equal distances form a non-degenerate parallelogram.
Furthermore, if we place a counter in each square in the first row and first column, then we obtain a grid with m + n − 1 counters, where no four counters form a non-degenerate parallelogram.