A365069 Number of subsets of {1..n} containing n and some element equal to the sum of two or more distinct other elements. A variation of non-binary sum-full subsets without re-usable elements.
0, 0, 0, 1, 2, 7, 17, 41, 88, 201, 418, 892, 1838, 3798, 7716, 15740
Offset: 0
Keywords
Examples
The subset {2,4,6} has 6 = 4 + 2 so is counted under a(6). The subset {1,2,4,7} has 7 = 4 + 2 + 1 so is counted under a(7). The subset {1,4,5,8} has 5 = 4 + 1 so is counted under a(8). The a(0) = 0 through a(6) = 17 subsets: . . . {1,2,3} {1,3,4} {1,4,5} {1,5,6} {1,2,3,4} {2,3,5} {2,4,6} {1,2,3,5} {1,2,3,6} {1,2,4,5} {1,2,4,6} {1,3,4,5} {1,2,5,6} {2,3,4,5} {1,3,4,6} {1,2,3,4,5} {1,3,5,6} {1,4,5,6} {2,3,4,6} {2,3,5,6} {2,4,5,6} {1,2,3,4,6} {1,2,3,5,6} {1,2,4,5,6} {1,3,4,5,6} {2,3,4,5,6} {1,2,3,4,5,6}
Links
- Steven R. Finch, Monoids of natural numbers, March 17, 2009.
Crossrefs
First differences of A364534.
Programs
-
Mathematica
Table[Length[Select[Subsets[Range[n]], MemberQ[#,n]&&Intersection[#, Total/@Subsets[#, {2,Length[#]}]]!={}&]],{n,0,10}]
Comments