TITLE: proving that the area of a 2016 sided polygon is an even integer
QUESTION [19 upvotes]: Let $P$ be a $2016$ sided polygon with all its adjacent sides perpendicular to each other, i.e., all its internal angles are either $90$°or $270$°. If the lengths of its sides are odd integers, prove that its area is an even integer.

I think visualising what this polygon might look like would more or less be the key to getting started on the problem, but I'm having quite a hard time doing so. Since the internal angles are all $90$° or $270$°, I think the shape would look like a rectangle or a square with smaller squares or rectangles protruding out from each side — but mini rectangles protruding from sides would not be possible because degrees of $180$° are not allowed. And to prove that the area is an even integer, if there are mini squares protruding from the sides there will have to be even number of those squares in total. And then I also need to make sure that at least the width or length of 'bigger' square or rectangle is even. But I seem to get stuck trying to draw a possible diagram...

REPLY [3 votes]: Consider the following structure $A$:

Every axis-parallel rectangle whose side lengths are odd integers is in $A$.
Let $a \in A$ be an arbitrary element and $b \in A$ be an rectangle. The union $a \cup b$ is in $A$ if it satisfies the following properties:

The intersection $a \cap b$ is a subset of exactly one side of $a$ and $b$ respectively.
The length of the intersection $a \cap b$ is an even integer. (The intersection needs to be a line segment by the first property.)
Note: If created in this way $a \cup b$ has:

odd area
#(sides of $a$) + #(sides of $b$) sides
$4n$ sides, where $n$ is the total number of rectangles used in the process of creating $a \cup b$



It is easy to check that this structure contains only polygons with perpendicular adjacent sides where all side lengths are odd.
Now consider a arbitrary polygon with perpendicular adjacent sides where all side lengths are odd. Wlog. assume all sides are axis-parallel (rotate otherwise). We can now slice the polygon into axis-parallel rectangles the following way:

"Sweep" the polygon with a line parallel to an axis (e.g. x-axis)
Whenever the line contains a side of the polygon, extend that side into the interior of the polygon until you hit another side. Cut the polygon along the extended side into parts (one part is a rectangle).

One can check that after a complete sweep the resulting parts are axis-parallel rectangles whose side lengths are odd integers which can be combined following the procedure of structure $A$. Thus every (axis-parallel) polygon with perpendicular adjacent sides where all side lengths are odd is in $A$.
Thus the given polygon is (after rotating) in $A$ and can be created by $2016/4 = 504$ non-overlapping "base rectangles". Each of those rectangles has odd area. Thus the area of the polygon is the sum of 504 odd numbers which is an even number.