OFFSET
0,5
COMMENTS
The Heinz numbers of these partitions are given by A276079.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..5000
EXAMPLE
The partition (2,2,2,1) has more than two 2's so is counted under a(7).
The a(2) = 1 through a(8) = 12 partitions:
(11) (111) (211) (311) (222) (511) (611)
(1111) (2111) (411) (2221) (2222)
(11111) (2211) (3211) (3311)
(3111) (4111) (4211)
(21111) (22111) (5111)
(111111) (31111) (22211)
(211111) (32111)
(1111111) (41111)
(221111)
(311111)
(2111111)
(11111111)
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, t, add(
b(n-i*j, i-1, `if`(j>i, 1, t)), j=`if`(i=1, n, 0..n/i)))
end:
a:= n-> b(n$2, 0):
seq(a(n), n=0..48); # Alois P. Heinz, Oct 07 2025
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], Or@@Table[Count[#, k]>k, {k, Union[#]}]&]], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 10 2025
STATUS
approved
