Sunny lines covering a triangular lattice: only are possible
Problem
A line in the plane is called sunny if it is not parallel to any of the -axis, the -axis, and the line .
Let be an integer. Determine all nonnegative integers such that there exist distinct lines in the plane satisfying:
- for all positive integers with , the point lies on at least one of the lines;
- exactly of the lines are sunny.
Let
Answer
All such are
Constructions (existence)
Construction for
Take the (non-sunny) lines Every point satisfies , hence lies on exactly one of these lines.
Construction for
Take the vertical (non-sunny) lines and the line The line passes through and , so it is not vertical, not horizontal, and has slope ; hence it is sunny.
All points in with are covered by the corresponding vertical line. The only point in with is , which lies on .
Construction for
Use the following three sunny lines: These cover exactly the six points with :
- lie on ;
- lie on ;
- lie on .
For the remaining lines, take the diagonals These are all non-sunny and cover every point with .
Thus we obtain distinct lines with exactly sunny.
Impossibility (only )
The proof is by reduction to the base case .
Step 1: boundary points
The convex hull of is the right triangle with vertices Let be the set of lattice points on its three sides: A direct count gives (the three vertices are counted twice in the union).
Step 2: a line not containing a side hits in at most points
A line that does not contain a whole side of the triangle intersects the triangle boundary in at most two points (enter/exit), hence it contains at most two points of .
Consequently, if none of the chosen lines contains a whole side, then these lines cover at most boundary points.
For we have , contradiction. Therefore:
Lemma. For every configuration of lines covering , at least one of the lines is one of the three side-lines In particular, at least one line is non-sunny.
Step 3: reduction from to
Assume and we have lines covering . By the lemma, one of them is a side-line.
- If is among them, delete it and translate the remaining lines by the vector . They now cover
- If is among them, do the analogous translation by .
- If is among them, delete it; the remaining lines already cover the subset .
Translations preserve parallelism, hence preserve the sunny/non-sunny status of each remaining line. Since the deleted side-line is non-sunny, the number of sunny lines does not change.
Therefore, for :
If a value is achievable for , then the same is achievable for .
Equivalently, the set of achievable 's is non-increasing with : Hence for all ,
Step 4: base case
Here and we must use exactly lines.
We already exhibited realizations with (specializing the constructions above).
It remains to show that is impossible.
Assume for contradiction that exactly two of the three lines are sunny, so exactly one line is non-sunny. Any non-sunny line that contains at least two points of must be one of (others meet in at most one point and are irrelevant).
In each case, remove the points covered by that non-sunny line. Among the remaining points, any line through two of them is forced to be vertical/horizontal/diagonal (hence non-sunny), so two sunny lines cannot cover them. For example:
- If the non-sunny line is , the remaining points are , and any line through two of these is , , or , all non-sunny.
- If the non-sunny line is , the remaining points are , and any line through two of these is , , or , all non-sunny.
The other cases are similar and yield the same contradiction.
Thus for , so Therefore for all . Together with the constructions, this proves the answer.
Lean4 formalization (mathlib)
A Lean file SunnyLines.lean (attached) formalizes the constructions for .
It includes complete coverage proofs (Covers) for these families.
The only remaining placeholder is a single sorry in threeSunnyFamily_sunnyCount, which is a finite Finset cardinality computation (showing that exactly indices are sunny).