The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A209354 Triangular array: T(n,k) = number of partitions of n for which (maximal term)-(minimal term)=k, if 0<=k<n, and T(n,n)=1. 0
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, 3, 6, 10, 7, 7, 3, 3, 1, 1, 0, 1, 1, 9, 10, 12, 8, 7, 3, 3, 1, 1, 0, 1, 5, 6, 15, 14, 13, 8, 7, 3, 3, 1, 1, 0, 1, 1, 11, 15, 20 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,11
COMMENTS
Row sums: A000041 (number of partitions of n).
LINKS
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
Cf. A000041.
Sequence in context: A328610 A217605 A096651 * A294446 A318163 A114640
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Mar 06 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 2 21:38 EDT 2024. Contains 373051 sequences. (Running on oeis4.)