The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

A199222

Number of n X n 0..2 arrays with values 0..2 introduced in row major order, the number of instances of each value within one of each other, and every element equal to zero or one horizontal or vertical neighbors