OFFSET
0,3
EXAMPLE
The partitions of 5 are [5], [4,1], [3,2], [3,1,1], [2,2,1], [2,1,1,1], [1,1,1,1,1], having greatest multiplicities 1,1,1,2,2,3,5, respectively. The partitions that do not include the greatest multiplicity as a part are [5], [3,2], [3,1,1], [2,1,1,1],and [1,1,1,1,1], so that a(5) = 5.
MATHEMATICA
z = 40; f[n_] := f[n] = IntegerPartitions[n];
m[p_] := Max[Map[Length, Split[p]]]
Table[Count[f[n], p_ /; ! MemberQ[p, m[p]]], {n, 0, z}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 17 2023
STATUS
approved