I'm very curious to learn whether there are counting techniques that can be used to simplify counting problems on lattices.
Let us take an example:
- Say we have a $10$ by $10$ square lattice, and we want to count all combinations of pairs of points whose coordinates differ by
$\Delta_{x} = \pm 1$ and $\Delta_{y} = \pm 1$.
In words: all pairs of points that are diagonal to one another and distant by only one point in between them. - So if we treat the lattice as a matrix, the pair with indices $\left(0,0\right)$ and $\left(1,1\right)$ would be one example.
- But how many possible combinations are there in total ?.
- Can the structure of the lattice be leveraged to simplify such counting problems ?.
Define a "single square" as a $1\times 1$ grid, and a "single diagonal" as a diagonal across a single square.
For each single square, there are $2$ single diagonals, each connecting a pair of points where $|\Delta x|=1,|\Delta y|=1$.
Consider an $n\times n$ grid from $(0,0)$ to $(n,n)$.
There are $n^2$ single squares.
Hence there are $\color{red}{2n^2}$ single diagonals, and correspondingly, the same number of point pairs where $|Δx|=1,|Δy|=1$.