A362559 Number of integer partitions of n whose weighted sum is divisible by n.
1, 1, 2, 1, 2, 3, 3, 3, 5, 4, 5, 7, 8, 11, 14, 14, 18, 25, 28, 26, 42, 47, 52, 73, 77, 100, 118, 122, 158, 188, 219, 266, 313, 367, 412, 489, 578, 698, 809, 914, 1094, 1268, 1472, 1677, 1948, 2305, 2656, 3072, 3527, 4081, 4665, 5342, 6225, 7119, 8150, 9408
Offset: 1
Keywords
Examples
The weighted sum of y = (4,2,2,1) is 1*4+2*2+3*2+4*1 = 18, which is a multiple of 9, so y is counted under a(9). The a(1) = 1 through a(9) = 5 partitions: (1) (2) (3) (4) (5) (6) (7) (8) (9) (111) (11111) (222) (3211) (3311) (333) (3111) (1111111) (221111) (4221) (222111) (111111111)
Crossrefs
Programs
-
Mathematica
Table[Length[Select[IntegerPartitions[n], Divisible[Total[Accumulate[Reverse[#]]],n]&]],{n,30}]
Comments