OFFSET
1,2
COMMENTS
a(n) is the sum of the n-th row of A288887.
LINKS
Fausto A. C. Cariboni, Table of n, a(n) for n = 1..76
Eric Weisstein's World of Mathematics, Sum-Free Set
EXAMPLE
PROG
(PARI) sumfree(v) = {for(i=1, #v, for (j=1, i, if (setsearch(v, v[i]+v[j]), return (0)); ); ); return (1); }
a(n) = {my(nb = 0); forsubset(n, s, if (#s && sumfree(Set(s)), nb += #s); ); nb; } \\ Michel Marcus, Nov 08 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Ben Burns, Jun 18 2017
STATUS
approved