A347301 Let S be a set of n distinct integers in the range -n-3 to n+3, and consider the sums s+t of pairs of distinct elements of S; a(n) is the maximum number of such sums that are powers of 2, over all choices for S.
0, 1, 3, 4, 5, 7, 9, 11, 13, 15, 17, 19, 21, 24, 26, 29, 31, 34, 36, 39, 41, 44, 46, 49, 51, 54, 56, 59, 61, 65, 67, 71, 73, 77, 79, 83, 85, 89, 91, 95, 97, 101, 103, 107, 109, 113, 115, 119, 121, 125, 127, 131, 133, 137, 139, 143, 146, 149, 152, 155, 159, 162, 166, 169, 173, 176
Offset: 1
Keywords
Examples
a(3) = b(3) = 3 from S = {-1, 3, 5}.
Links
- Rob Pratt, Table of n, a(n) for n = 1..100
- Max A. Alekseyev, On computing sets of integers with maximum number of pairs summing to powers of 2, arXiv:2303.02872 [math.CO], 2023.
- Rob Pratt, Output from MILP solver [n, a(n), S]
- N. J. A. Sloane, The On-Line Encyclopedia of Integer Sequences: An illustrated guide with many unsolved problems, Guest Lecture given in Doron Zeilberger's Experimental Mathematics Math640 Class, Rutgers University, Spring Semester, Apr 28 2022: Slides; Slides (an alternative source).
- N. J. A. Sloane and Brady Haran, Problems with Powers of Two, Numberphile video, 2022
- Stan Wagon, Problem of the Week 1321: Powers of Two, Apr 16 2021.
- Stan Wagon, Problem of the Week 1321 (Solution)
- Eric Snyder, Table of n, allowable M for n = 1..500
Crossrefs
See A352178 for the unrestricted problem.
Comments