A239456 Number of partitions p of n such that if h = max(p), then h is an (h,2)-separator of p; see Comments.
0, 0, 0, 0, 1, 0, 1, 2, 1, 1, 4, 2, 3, 4, 4, 5, 7, 5, 7, 9, 9, 9, 14, 11, 13, 16, 17, 19, 22, 20, 25, 28, 29, 30, 38, 37, 41, 45, 48, 51, 60, 59, 67, 73, 76, 82, 93, 94, 103, 111, 121, 127, 142, 143, 158, 171, 180, 191, 211, 218, 236, 252, 270, 284, 309, 320
Offset: 1
Examples
a(11) counts these 4 partitions: 515, 434, 31313, 2121212.
Programs
-
Mathematica
z = 75; Table[Count[IntegerPartitions[n], p_ /; 2 Count[p, Min[p]] == Length[p] + 1], {n, 1, z}] (* A239729 *) Table[Count[IntegerPartitions[n], p_ /; 2 Count[p, 2 Min[p]] == Length[p] + 1], {n, 1, z}] (* A239481 *) Table[Count[Rest[IntegerPartitions[n]], p_ /; 2 Count[p, Max[p]] == Length[p] + 1], {n, 1, z}] (* A239456 *) Table[Count[Rest[IntegerPartitions[n]], p_ /; 2 Count[p, Length[p]] == Length[p] + 1], {n, 1, z}] (* A239499 *) Table[Count[IntegerPartitions[n], p_ /; 2 Count[p, Max[p] - Min[p]] == Length[p] + 1], {n, 1, z}] (*A239689 *)
Comments