The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.
Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations
(which often say "discovered thanks to the OEIS").
Number of nX3 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 one or two horizontal or vertical neighbors