OFFSET
1,11
COMMENTS
Row sums: A000041 (number of partitions of n).
EXAMPLE
First ten rows:
1
0 1
1 0 1
1 1 0 1
2 1 1 0 1
1 3 1 1 0 1
3 2 3 1 1 0 1
1 5 3 3 1 1 0 1
3 4 6 3 3 1 1 0 1
2 6 6 7 3 3 1 1 0 1
Row 5 (counting the top row as row 0):
T(5,0)=1 counts [1,1,1,1,1]
T(5,1)=3 counts [2,1,1,1], [2,2,1], [3,2]
T(5,2)=1 counts [3,1,1]
T(5,3)=1 counts [4,1]
T(5,4)=0
T(5,5)=1 counts [5]
MATHEMATICA
f[n_] := IntegerPartitions[n];
p[n_, k_] := f[n][[k]];
r[n_] := Table[p[n, k], {k, 1, Length[f[n]]}]
g[n_, k_] := Max[p[n, k]] - Min[p[n, k]]; g[n_, 1] := n;
t[n_] := Table[g[n, k], {k, 1, Length[f[n]]}]
c[0, 0] = 1; c[n_, k_] := Count[t[n], k]
u = Table[c[n, k], {n, 0, 15}, {k, 0, n}];
TableForm[u] (* as a triangle *)
Flatten[u] (* as a sequence *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Mar 06 2012
STATUS
approved