A088809 Number of subsets of {1, ..., n} that are not sum-free.
0, 0, 0, 1, 3, 10, 27, 67, 154, 350, 763, 1638, 3450, 7191, 14831, 30398, 61891, 125557, 253841, 511818, 1029863, 2069341, 4153060, 8327646, 16687483, 33422562, 66916342, 133936603, 268026776, 536277032, 1072886163, 2146245056, 4293187682, 8587371116
Offset: 0
Keywords
Examples
From _Gus Wiseman_, Aug 10 2023: (Start) The set S = {1,3,6,8} has pair-sums {4,7,9,11,14}, which are all missing from S, so it is not counted under a(8). The set {1,4,6,7} has pair-sum 1 + 6 = 7, so is counted under a(7). The a(1) = 0 through a(5) = 10 sets: . . {1,2,3} {1,2,3} {1,2,3} {1,3,4} {1,3,4} {1,2,3,4} {1,4,5} {2,3,5} {1,2,3,4} {1,2,3,5} {1,2,4,5} {1,3,4,5} {2,3,4,5} {1,2,3,4,5} (End)
Links
- Fausto A. C. Cariboni, Table of n, a(n) for n = 0..75
- Eric Weisstein's World of Mathematics, Sum-Free Set
- Reinhard Zumkeller, Illustration of initial terms
Crossrefs
Programs
-
Mathematica
Table[Length[Select[Subsets[Range[n]],Intersection[#,Total/@Subsets[#,{2}]]!={}&]],{n,0,10}] (* Gus Wiseman, Aug 10 2023 *)
Extensions
Terms a(32) and beyond from Fausto A. C. Cariboni, Sep 28 2020
Comments