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

A199193

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