OFFSET
0,5
EXAMPLE
The a(3) = 1 through a(8) = 16 partitions not containing their mean:
(21) (31) (32) (42) (43) (53)
(211) (41) (51) (52) (62)
(221) (411) (61) (71)
(311) (2211) (322) (332)
(2111) (3111) (331) (422)
(21111) (421) (431)
(511) (521)
(2221) (611)
(3211) (3311)
(4111) (5111)
(22111) (22211)
(31111) (32111)
(211111) (41111)
(221111)
(311111)
(2111111)
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], !MemberQ[#, Mean[#]]&]], {n, 0, 20}]
PROG
(Python)
from sympy.utilities.iterables import partitions
def A327472(n): return sum(1 for s, p in partitions(n, size=True) if n%s or n//s not in p) if n else 1 # Chai Wah Wu, Sep 21 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 13 2019
STATUS
approved