OFFSET
0,4
COMMENTS
EXAMPLE
For S = {1,3,4,6} we have {{1,6},{3,4}}, so S is counted under a(6).
The a(0) = 1 through a(6) = 18 subsets:
{} {} {} {} {} {} {}
{1,2,3} {1,2,3} {1,2,3} {1,2,3}
{1,3,4} {1,3,4} {1,3,4}
{1,2,3,4} {1,4,5} {1,4,5}
{2,3,5} {1,5,6}
{1,2,3,4} {2,3,5}
{1,2,4,5} {2,4,6}
{2,3,4,5} {1,2,3,4}
{1,2,3,6}
{1,2,4,5}
{1,2,5,6}
{1,3,4,6}
{2,3,4,5}
{2,3,5,6}
{3,4,5,6}
{1,2,3,4,6}
{1,2,4,5,6}
{2,3,4,5,6}
MATHEMATICA
biqQ[y_]:=MemberQ[Total/@Subsets[y], Total[y]/2];
Table[Length[Select[Subsets[Range[n]], biqQ]], {n, 0, 15}]
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Apr 07 2024
STATUS
approved