The power of two pair sum problem asks for the maximum number of unordered pairs of distinct elements of an
-element set of integers whose
sum is
for some integer
.
Ullman and Wagon (2021) posed the problem for
.
Different pairs with the same sum count separately. For example,
gives four qualifying pairs with sums 2, 2, 4, and
8 (Numberphile 2022).
Join two integers by an edge if their sum is a power of 2. The problem is to maximize the number of edges of the resulting graph. The graph contains no cycle of length 4. In such a cycle the two opposite pairs of edge sums have the same total. A sum of two powers of 2 uniquely determines the unordered pair of powers, including when the powers are equal. Matching equal edge sums across the opposite pairs would therefore give two incident edges with equal sums, forcing the other two endpoints to have equal labels (Alekseyev 2026).
The values of
for
, 2,
,
21 are 0, 1, 3, 4, 6, 7, 9, 11, 13, 15, 17, 19, 21, 24, 26, 29, 31, 34, 36, 39, and
41 (OEIS A352178). Alekseyev (2026) determined
the values for
using an algorithm that tests whether a given
graph admits distinct integer labels with power-of-two sums along its edges.