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 3 of 6: Case with a long line: k = 0 or k = 1
n=3:{(1,1),(1,2),(1,3),(2,1),(2,2),(3,1)},  1+2+3=6 pointsn=3:\quad \{(1,1),(1,2),(1,3),(2,1),(2,2),(3,1)\},\ \ 1+2+3=6\ \text{points}
Detailed analysis

For n=3n=3 the array has the 66 points listed. If one of the 33 lines is long (covering 33 collinear points on an edge), the remaining 33 points must be covered by the other 22 lines. One of those two lines necessarily passes through (at least) 22 of the 33 remaining points, and a line through two lattice points of the array is always parallel to one of the three forbidden directions, hence not sunny; the last line covers the single leftover point and may be chosen sunny or not. So this case yields exactly k=0k=0 or k=1k=1 sunny lines.