OFFSET
1,2
COMMENTS
Also the number of integer partitions y of n such that the average of the multiset {2^(s - 1): s in y} is an integer.
EXAMPLE
The a(1) = 1 through a(8) = 8 partitions:
(1) (2) (3) (4) (5) (6) (7) (8)
(11) (111) (22) (32) (33) (43) (44)
(1111) (311) (42) (52) (53)
(11111) (222) (331) (62)
(111111) (511) (422)
(3211) (2222)
(1111111) (4211)
(11111111)
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], IntegerQ[Mean[2^(#-1)]]&]], {n, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 17 2019
STATUS
approved