Problem 4
Let be a fixed positive odd integer. Take distinct points in the coordinate plane such that: (1) , , and for , both coordinates of are integers between and inclusive; (2) for , segment is parallel to the -axis if is even and to the -axis if is odd; (3) for , segments and share at most one point. Determine the maximum possible value of .
Step 5 of 5: Count and conclude
Detailed analysis
The inner path contributes turning points and the surrounding frame contributes ; their sum is . Combined with the upper bound, this proves the maximum.