A196138 T(n,k)=Number of nXk 0..4 arrays with each element x equal to the number of its horizontal and vertical neighbors equal to 0,2,1,3,4 for x=0,1,2,3,4.
1, 0, 0, 1, 4, 1, 2, 3, 3, 2, 1, 8, 4, 8, 1, 1, 14, 19, 19, 14, 1, 3, 19, 31, 31, 31, 19, 3, 3, 46, 70, 165, 165, 70, 46, 3, 2, 56, 117, 251, 326, 251, 117, 56, 2, 4, 133, 253, 931, 1350, 1350, 931, 253, 133, 4, 6, 184, 538, 1880, 3288, 3716, 3288, 1880, 538, 184, 6, 5, 372
Offset: 1
Examples
Some solutions for n=6 k=4 ..2..1..0..1....1..2..2..1....1..2..1..0....1..2..1..0....0..2..1..0 ..1..0..1..2....0..1..1..1....1..2..0..1....1..0..1..2....1..1..1..2 ..0..1..1..2....2..1..1..2....0..1..1..2....2..1..0..1....2..1..0..1 ..1..2..0..1....1..0..1..2....2..1..1..2....0..1..2..1....0..1..2..1 ..1..0..2..1....1..2..1..1....1..1..0..1....2..1..0..1....2..1..0..1 ..2..1..1..0....1..2..1..0....0..2..1..0....1..0..1..2....1..0..1..2
Links
- R. H. Hardin, Table of n, a(n) for n = 1..219
Crossrefs
Column 1 is A017817(n+3)
Comments