OFFSET
1,9
FORMULA
G.f.: Sum_{m>0} (x^(5*m) / Product_{i>m} (1-x^i)). More generally, g.f. for number of partitions of n such that the least part occurs exactly k times is Sum_{m>0} (x^(k*m) / Product_{i>m} (1-x^i)). Vladeta Jovovic
MATHEMATICA
f[n_] := Block[{p = IntegerPartitions[n], l = PartitionsP[n], c = 0, k = 1}, While[k < l + 1, q = PadLeft[ p[[k]], 6]; If[ q[[1]] != q[[6]] && q[[2]] == q[[6]], c++ ]; k++ ]; c]; Table[ f[n], {n, 54}]
Table[Count[IntegerPartitions[n], _?(Length[Split[#][[-1]]]==5&)], {n, 60}] (* Harvey P. Dale, Feb 07 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jul 24 2004
STATUS
approved