cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A222807 Number of subsets A of {0,1,...,n-1} with |A+A| > |A-A|.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 10, 30, 66, 144, 314, 692, 1452, 3046, 6388, 13298, 27274, 56164, 113672, 231892, 470984, 950178, 1912700, 3868034, 7772172, 15651674, 31464544, 63154106, 126603428, 254088618, 508541874, 1018817124
Offset: 1

Views

Author

N. J. A. Sloane, Mar 10 2013

Keywords

Comments

Some authors work with subsets of [0..n-1], others with subsets of [1..n].
Keywords: sum-dominant sets, MSTD sets.
a(1)-a(21) were computed by Daniel C. R. Scheinerman, Mar 10 2013; although a(1)-a(27) had been found by Kevin O'Bryant some time earlier.

Examples

			The four examples illustrating a(15)=4 are (cf. A140794):
0    2    3    7   10   11   12   14,
0    2    3    4    7   11   12   14,
0    1    2    5    9   10   12   13   14,
0    1    2    4    5    9   12   13   14.
		

Crossrefs

Formula

a(n) = Sum_{i=1..n} (n-i+1)*A224893(i).

Extensions

a(28)-a(35) from James Wilcox, Jul 22 2013
a(36)-a(40) from Giovanni Resta, Jul 23 2013
a(41) from James Wilcox, Jul 24 2013