A366129 Number of finite sets of positive integers with greatest non-subset-sum n.
1, 2, 2, 4, 4, 6, 7, 11, 11, 15, 18, 23, 28, 36, 40, 50, 59, 70, 83, 101, 118, 141, 166, 195, 227, 268, 306, 358, 414, 478, 549, 640, 730, 846, 968, 1113, 1271, 1462, 1657, 1897, 2154, 2451
Offset: 1
Examples
The a(1) = 1 through a(8) = 11 sets: {2} {3} {4} {5} {6} {7} {8} {9} {1,3} {1,4} {2,3} {2,4} {2,5} {2,6} {2,7} {1,5} {1,6} {3,4} {3,5} {3,6} {1,2,5} {1,2,6} {1,7} {1,8} {4,5} {1,3,4} {1,3,5} {2,3,4} {1,2,7} {1,2,8} {1,9} {1,2,3,8} {1,3,6} {1,4,5} {1,2,9} {1,2,3,9} {1,2,4,9}
Crossrefs
Programs
-
Mathematica
nmz[y_]:=Complement[Range[Total[y]], Total/@Subsets[y]]; Table[Length[Select[Join@@IntegerPartitions/@Range[n,2*n], UnsameQ@@#&&Max@@nmz[#]==n&]],{n,15}]
Extensions
a(31)-a(42) from Erich Friedman, Nov 13 2024
Comments