OFFSET
0,2
LINKS
Rémy Sigrist, C++ program
EXAMPLE
The subset {1,2,4,5,10,14} has differences (1,2,1,5,4) so is counted under a(14).
The a(0) = 1 through a(5) = 14 subsets:
{} {} {} {} {} {}
{1} {1} {1} {1} {1}
{2} {2} {2} {2}
{1,2} {3} {3} {3}
{1,2} {4} {4}
{1,2,3} {1,2} {5}
{2,4} {1,2}
{1,2,3} {2,4}
{1,2,4} {1,2,3}
{1,2,3,4} {1,2,4}
{1,2,3,4}
{1,2,3,5}
{1,2,4,5}
{1,2,3,4,5}
MATHEMATICA
Table[Length[Select[Subsets[Range[n]], SubsetQ[#, Differences[#]]&]], {n, 0, 10}]
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Aug 04 2023
EXTENSIONS
More terms from Rémy Sigrist, Aug 06 2023
STATUS
approved