MathLabs

Problem 3

A collection of nn squares on the plane is called tri-connected if the following criteria are satisfied: (i) All the squares are congruent. (ii) If two squares have a point PP in common, then PP is a vertex of each of the squares. (iii) Each square touches exactly three other squares. How many positive integers nn are there with 2018≤n≤30182018\le n\le 3018, such that there exists a collection of nn squares that is tri-connected?
Step 1 of 4: Count touching incidences
#{(A,B):A∼B}=3n is even ⟹ n is even\#\{(A,B): A\sim B\}=3n\ \text{is even}\ \Longrightarrow\ n\ \text{is even}
Detailed analysis

Write A∼BA\sim B to mean squares AA and BB touch. Since A∼BA\sim B if and only if B∼AB\sim A, and each of the nn squares touches exactly three others, the number of ordered pairs (A,B)(A,B) with A∼BA\sim B equals 3n3n, and this count is automatically even because ordered pairs come in reversible pairs (A,B),(B,A)(A,B),(B,A). Hence 3n3n is even, so nn is even.