A252820 T(n,k)=Number of nXk nonnegative integer arrays with upper left 0 and every value within 2 of its city block distance from the upper left and every value increasing by 0 or 1 with every step right or down.
1, 2, 2, 4, 6, 4, 7, 17, 17, 7, 11, 40, 63, 40, 11, 16, 81, 187, 187, 81, 16, 22, 147, 468, 684, 468, 147, 22, 29, 246, 1032, 2078, 2078, 1032, 246, 29, 37, 387, 2067, 5490, 7564, 5490, 2067, 387, 37, 46, 580, 3840, 13015, 23664, 23664, 13015, 3840, 580, 46, 56, 836, 6716
Offset: 1
Examples
Some solutions for n=4 k=4 ..0..1..2..2....0..1..2..3....0..0..1..1....0..1..2..3....0..0..0..1 ..1..1..2..3....1..1..2..3....0..1..2..2....1..2..3..3....0..1..1..2 ..2..2..3..4....1..1..2..3....1..2..3..3....2..3..3..4....1..2..2..3 ..2..3..4..5....1..2..3..4....1..2..3..4....2..3..4..4....2..2..3..4
Links
- R. H. Hardin, Table of n, a(n) for n = 1..1680
Crossrefs
Column 1 is A000124(n-1)
Formula
Empirical for column k:
k=1: a(n) = (1/2)*n^2 - (1/2)*n + 1
k=2: a(n) = (1/24)*n^4 + (5/12)*n^3 - (1/24)*n^2 + (7/12)*n + 1
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 "within 1" instead of "within 2" is T(n,k)=binomial(n+k,k)-1
Comments