OFFSET
0,5
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..75
FORMULA
First differences of A088809.
EXAMPLE
The subset S = {1,3,6,8} has pair-sums {4,7,9,11,14}, which are disjoint from S, so it is not counted under a(8).
The subset {2,3,4,6} has pair-sum 2 + 4 = 6, so is counted under a(6).
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}
MATHEMATICA
Table[Length[Select[Subsets[Range[n]], MemberQ[#, n]&&Intersection[#, Total/@Subsets[#, {2}]]!={}&]], {n, 0, 10}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Aug 11 2023
EXTENSIONS
a(16) onwards added (using A088809) by Andrew Howroyd, Jan 13 2024
STATUS
approved