1: \begin{abstract}
2: \small
3: We study the effects of imposing linear relations within modules of
4: matrices on average sizes of kernels.
5: The relations that we consider can be described combinatorially in terms of
6: partial colourings of grids.
7: The cells of these grids correspond to positions in matrices and each
8: defining relation involves all cells of a given colour.
9: We prove that imposing such relations arising from ``admissible'' partial colourings
10: has no effect on average sizes of kernels over finite quotients of discrete
11: valuation rings.
12: This vastly generalises the known fact that average sizes of kernels
13: of general square and traceless matrices of the same size coincide over such rings.
14: As a group-theoretic application, we explicitly determine zeta functions enumerating
15: conjugacy classes of finite $p$-groups derived from free class-$3$-nilpotent
16: groups for $p\ge 5$.
17: \end{abstract}
18: