General help

Number of Nearest Neighbours

(top view)

Consider two examples, the numbers of nearest neighbours are as stated.
Being b > a, only the neighbours at "a" distance are counted.

rectangular

hexagonal

In a rectangular arrangement four is the highest possible. In a hexagonal arrangement six is the highest possible.

Average when the case represents several parts.