Question 7
A convex polygon can be tiled by unit squares and unit equilateral triangles in exactly $p$ different ways, where $p$ is prime. Prove that the polygon has a side of length $p-1$. (12 points)

Neutral editorial illustration.

Neutral editorial illustration.