A363525 Number of integer partitions of n with weighted sum divisible by reverse-weighted sum.
1, 2, 2, 3, 2, 4, 2, 4, 5, 5, 3, 10, 4, 7, 13, 10, 8, 29, 10, 18, 39, 20, 20, 70, 29, 40, 105, 65, 55, 166, 73, 132, 242, 141, 129, 476, 183, 248, 580, 487, 312, 984, 422, 868, 1345, 825, 724, 2709, 949, 1505, 2756, 2902, 1611, 4664, 2289, 4942, 5828, 4278
Offset: 1
Keywords
Examples
The partition (6,5,4,3,2,1,1,1,1) has weighted sum 80, reverse 160, so is counted under a(24). The a(n) partitions for n = 1, 2, 4, 6, 9, 12, 14 (A..E = 10-14): 1 2 4 6 9 C E 11 22 33 333 66 77 1111 222 711 444 65111 111111 6111 921 73211 111111111 3333 2222222 7311 71111111 63111 11111111111111 222222 621111 111111111111
Programs
-
Mathematica
Table[Length[Select[IntegerPartitions[n], Divisible[Total[Accumulate[#]], Total[Accumulate[Reverse[#]]]]&]],{n,30}]
Comments