MathLabs

Problem 1

A line in the plane is called sunny if it is not parallel to the xx-axis, the yy-axis, or the line x+y=0x+y=0. Let n≥3n\ge3 be a given integer. Determine all nonnegative integers kk such that there exist nn distinct lines in the plane satisfying both of the following: for all positive integers aa and bb with a+b≤n+1a+b\le n+1, the point (a,b)(a,b) lies on at least one of the lines; and exactly kk of the nn lines are sunny.
Step 5 of 6: Explicit constructions realize k = 0 and k = 1 too
k=0: a=1, b=1, a+b=4;k=1: b=1, b=2, plus one sunny line through (1,3)k=0:\ a=1,\ b=1,\ a+b=4;\qquad k=1:\ b=1,\ b=2,\ \text{plus one sunny line through }(1,3)
Detailed analysis

For k=0k=0, take the three long lines a=1a=1, b=1b=1, a+b=4a+b=4, which together cover all 66 points using only non-sunny lines. For k=1k=1, take the long line b=1b=1 (covering (1,1),(2,1),(3,1)(1,1),(2,1),(3,1)), the non-sunny line b=2b=2 (covering (1,2),(2,2)(1,2),(2,2)), and any sunny line through the single remaining point (1,3)(1,3); these 33 lines cover all 66 points with exactly one sunny line. Together with the k=3k=3 construction above, all of k=0,1,3k=0,1,3 are realized at n=3n=3.