MathLabs

Problem 6

Let nn be a positive integer. A Nordic square is an n×nn\times n board containing all the integers from 11 to n2n^2 so that each cell contains exactly one number. An uphill path is a sequence of one or more cells such that: (a) the first cell in the sequence is a valley, meaning the number written is less than all its orthogonal neighbours; (b) each subsequent cell in the sequence is orthogonally adjacent to the previous cell; and (c) the numbers written in the cells in the sequence are in increasing order. Find, as a function of nn, the smallest possible total number of uphill paths in a Nordic square.
Step 3 of 5: Build a tree TT with no two outside cells adjacent
In plain words

If every cell outside a chosen tree is surrounded only by tree cells, then no uphill path can ever pass through two consecutive outside cells, sharply limiting how paths can grow.

T is a periodic tree whose complement has no adjacent cellsT\text{ is a periodic tree whose complement has no adjacent cells}
Detailed analysis

A standard periodic construction (with boundary rows or columns trimmed when needed) gives a connected tree TT such that no two cells outside TT are orthogonally adjacent. We use only this structural property in the count.