Alice is drawing a shape on a piece of paper. She starts by placing her pencil at the origin, and then draws line segments of length one, alternating between vertical and horizontal segments. Eventually, her pencil returns to the origin, forming a closed, non-self-intersecting shape. Show that the area of this shape is even if and only if its perimeter is a multiple of eight.
Problem 1547
Official solution
1. Define the coordinates and movement rules:
Let be the coordinates of the points of the polygon, with . Assume that Alice starts at the origin and alternates between drawing horizontal and vertical segments of length 1. Without loss of generality, assume the first segment is horizontal. Thus, .
2. Movement rules:
- For even , and .
- For odd , and .
Let be such that for odd and for even .
3. Perimeter must be a multiple of 4:
Since the shape is closed and non-self-intersecting, the sum of all and must be zero. Given that there are horizontal and vertical segments, must be even, implying is a multiple of 4.
4. Shoelace formula for area:
The shoelace formula for the area of a polygon with vertices is:
Since the shape is closed, and .
5. Simplify the area calculation:
For even , and for odd , . Thus, the terms involving and simplify:
Since and , the area can be expressed as:
6. Parity of the area:
The area is even if and only if the sum is even. We can assume and for simplicity, leading to:
Since changes by for each vertical segment, the sum is even if and only if is a multiple of 8.
7. Conclusion:
Therefore, the area of the shape is even if and only if the perimeter (which is ) is a multiple of 8.