OFFSET
1,3
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..300
EXAMPLE
The eleven partitions of 6 include the following six, written as multisets: {1,1,1,1,1,1}, {1,1,1,1,2}, {1,1,2,2}, {1,1,1,3}, {1,2,3}, {3,3}; each has a sub-multiset of which the sum of terms is 3. None of the remaining five partitions of 6 has this property, so t(6,3) = 6. First 7 rows:
1
1 ... 2
2 ... 2 ... 3
3 ... 3 ... 3 ... 5
5 ... 5 ... 5 ... 5 ... 7
7 ... 8 ... 6 ... 7 ... 7 ... 11
11 .. 11 .. 11 .. 11 .. 10 .. 11 .. 15
MATHEMATICA
p[n_] := p[n] = IntegerPartitions[n]; t = Table[Length[Cases[p[n], Apply[Alternatives, Map[Flatten[{___, #, ___}] &, p[k]]]]], {n, 15}, {k, n}]; u = Flatten[t] (* 235130 *)
TableForm[t] (* Peter J. C. Moses, Jan 04 2014 *)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Clark Kimberling, Jan 03 2014
STATUS
approved