A238003 Number of partitions of n not having depth 1; see Comments.
1, 1, 2, 3, 3, 5, 6, 11, 10, 17, 19, 30, 34, 50, 54, 89, 97, 126, 160, 215, 254, 339, 409, 549, 649, 838, 997, 1286, 1562, 1934, 2375, 2966, 3552, 4418, 5339, 6505, 7869, 9591, 11499, 13946, 16781, 20163, 24167, 28932, 34434, 41285, 49116, 58508, 69361
Offset: 1
Examples
The 11 partitions of 6 are partitioned by depth as follows: depth 0: 6, 51, 42, 321; depth 1: 411, 33, 222, 2211, 21111, 11111; depth 2: 3111. Thus, a(6) = 5.
Programs
-
Mathematica
z = 40; c[n_] := c[n] = Map[Length[FixedPointList[Sort[Map[Total, Split[#]], Greater] &, #]] - 2 &, IntegerPartitions[n]] Table[Count[c[n], 1], {n, 1, z}] (* A237685 *) Table[PartitionsP[n] - Count[c[n], 1], {n, 1, z}] (* A238003 *) (* Peter J. C. Moses, Feb 19 2014 *)
Comments