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.

Showing 1-4 of 4 results.

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

A118544 Number of subsets A of {1,2,...,n} with |A+A| = |A-A|.

Original entry on oeis.org

2, 4, 8, 14, 24, 40, 66, 106, 174, 286, 480, 814, 1412, 2480, 4476, 8184, 15230, 28652, 54488, 104262, 201266, 390090, 760234, 1486030, 2914492, 5728506, 11289420, 22279222, 44046072, 87181188, 172777354, 342724456, 680524908, 1352154964, 2688763324
Offset: 1

Views

Author

Kevin O'Bryant, May 07 2006

Keywords

Comments

Keywords: sum-dominant sets, MSTD sets.
Some authors work with subsets of [0..n-1], others with subsets of [1..n].

Examples

			a(4)=14: two of the sixteen subsets of {1,2,3,4} have |A+A|<|A-A| (specifically, {1,3,4} and {1,2,4}).
		

Crossrefs

Extensions

a(21)-a(29) from Robert Gerbicz, Nov 19 2010
a(30)-a(35) from James Wilcox, Jul 22 2013

A222808 Number of subsets A of {0,1,...,n-1} with |A+A| < |A-A|.

Original entry on oeis.org

0, 0, 0, 2, 8, 24, 62, 150, 338, 738, 1568, 3282, 6780, 13904, 28288, 57342, 115812, 233426, 469656, 944000, 1895194, 3802762, 7625328, 15284798, 30626642, 61353084, 122872144, 246042562, 492592948, 986089652, 1973756116, 3950330140, 7905541650, 15819942048, 31655323370
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.

Crossrefs

Extensions

a(28)-a(35) from James Wilcox, Jul 22 2013

A102282 Smallest possible example of an MSTD ("More sums than differences") set.

Original entry on oeis.org

0, 2, 3, 4, 7, 11, 12, 14
Offset: 1

Views

Author

N. J. A. Sloane, Sep 08 2008

Keywords

Comments

Reflection of A140794: a(n) = 14 - A140794(9-n). - James Wilcox, Jul 24 2013
Hegarty, who attributes the set to Conway, proves its minimality. - Charles R Greathouse IV, Sep 26 2019

References

  • B. Hayes, Calculemus!, American Scientist, 96 (Sep-Oct 2008), 362-366.

Crossrefs

Showing 1-4 of 4 results.