Z-Shaped Polyline
Source: 2024 Japan MO P3
February 11, 2024
combinatorics
Problem Statement
In the -plane, points with integer coordinates ranging from to for both the and coordinates are called good points. Moreover, for any four points satisfying the following conditions, the polyline is called a -shaped polyline.[*] All are good points.
[*] ,
[*] ,
[*] , Find the smallest possible positive integer such that -shaped polylines satisfy the following condition: for any good point , there exists an integer between and inclusive such that lies on .