The Erdős-Graham subset sum problem asks for the asymptotic size of the largest subset of an interval of positive
integers having no subset sum equal to a prescribed
target. For , let
be the largest
for
with
not a sum of distinct elements of
(Matijasevick 2026). Here
is the floor function.
For , the elementary exact formula is
, where
is the ceiling function.
Matijasevick (2026) proved that
converges iff
. For
its upper limit is
, also attained along odd
. At
its complete set of limit
points is
.
A more detailed classification uses the least positive integer
not dividing
, necessarily a prime power.
If
and
, then along the integers
with this value of
,
The restriction on and
is essential and does not provide an exact finite formula
in the remaining cases.