A379667 Number of finite multisets of positive integers with sum + product = n.
0, 1, 1, 1, 2, 2, 3, 3, 5, 5, 6, 7, 8, 8, 11, 12, 13, 14, 15, 17, 19, 19, 20, 22, 26, 26, 29, 30, 31, 34, 35, 36, 38, 40, 43, 46, 48, 48, 50, 53, 55, 57, 61, 62, 66, 66, 69, 73, 75, 77, 79, 82, 83, 85, 89, 91, 94, 94, 95, 103, 106, 107, 111, 113, 116, 119, 121
Offset: 0
Keywords
Examples
The partition (2,2,1) has sum + product equal to 5 + 4 = 9, so is counted under a(9). The a(0) = 0 through a(8) = 5 partitions: . () (1) (11) (2) (21) (3) (31) (4) (111) (1111) (211) (2111) (22) (11111) (111111) (311) (21111) (1111111)
Crossrefs
Arrays counting multisets by sum and product:
Counting and ranking multisets by comparing sum and product:
A318950 counts factorizations by sum.
Programs
-
Mathematica
Table[Length[Select[Join@@Array[IntegerPartitions,n+1,0],Total[#]+Times@@#==n&]],{n,0,30}]