A384391 Number of subsets of {1..n} containing n and some element that is a sum of distinct non-elements.
0, 0, 1, 3, 9, 20, 48, 102, 219, 454, 945, 1920, 3925, 7921, 16008
Offset: 0
Examples
The a(0) = 0 through a(6) = 20 subsets: . . . {3} {4} {5} {6} {2,4} {1,5} {1,6} {3,4} {2,5} {2,6} {3,5} {3,6} {4,5} {4,6} {1,4,5} {5,6} {2,3,5} {1,3,6} {2,4,5} {1,5,6} {3,4,5} {2,3,6} {2,4,6} {2,5,6} {3,4,6} {3,5,6} {4,5,6} {1,3,5,6} {1,4,5,6} {2,3,4,6} {2,3,5,6} {2,4,5,6} {3,4,5,6}
Crossrefs
Programs
-
Mathematica
nonsets[y_]:=If[Length[y]==0,{},Rest[Subsets[Complement[Range[Max@@y],y]]]]; Table[Length[Select[Subsets[Range[n]],MemberQ[#,n]&&Intersection[#,Total/@nonsets[#]]!={}&]],{n,0,10}]