A229445 T(n,k)=Number of nXk 0..2 arrays with horizontal differences mod 3 never 1, vertical differences mod 3 never -1, and rows and columns lexicographically nondecreasing.
3, 4, 5, 5, 7, 8, 6, 10, 13, 12, 7, 14, 22, 25, 17, 8, 19, 37, 53, 47, 23, 9, 25, 60, 109, 128, 84, 30, 10, 32, 93, 212, 324, 293, 142, 38, 11, 40, 138, 387, 753, 915, 625, 228, 47, 12, 49, 197, 665, 1609, 2546, 2402, 1244, 350, 57, 13, 59, 272, 1083, 3184, 6374, 8024
Offset: 1
Examples
Some solutions for n=4 k=4 ..0..2..2..2....0..2..2..2....0..0..2..2....0..0..2..2....0..2..2..2 ..1..0..0..2....1..0..0..0....0..0..2..2....1..1..0..0....0..2..2..2 ..2..1..1..0....2..1..1..1....1..1..0..0....1..1..1..1....0..2..2..2 ..2..1..1..1....2..2..2..2....1..1..1..1....2..2..1..1....1..0..0..2
Links
- R. H. Hardin, Table of n, a(n) for n = 1..480
Formula
Empirical for column k:
k=1: a(n) = (1/2)*n^2 + (1/2)*n + 2
k=2: a(n) = (1/24)*n^4 + (1/12)*n^3 - (1/24)*n^2 + (23/12)*n + 2
k=3: [polynomial of degree 6]
k=4: [polynomial of degree 8]
k=5: [polynomial of degree 10]
k=6: [polynomial of degree 12]
k=7: [polynomial of degree 14]
Empirical for row n:
n=1: a(n) = n + 2
n=2: a(n) = (1/2)*n^2 + (1/2)*n + 4
n=3: a(n) = (1/3)*n^3 + (8/3)*n + 5
n=4: a(n) = (1/4)*n^4 - (1/3)*n^3 + (13/4)*n^2 + (11/6)*n + 7
n=5: a(n) = (11/60)*n^5 - (1/2)*n^4 + (15/4)*n^3 - n^2 + (257/30)*n + 6
n=6: [polynomial of degree 6]
n=7: [polynomial of degree 7]
Comments