Progression-free set of numbers
In mathematics, and in particular in arithmetic combinatorics, a Salem-Spencer set is a set of numbers no three of which form an arithmetic progression. Salem–Spencer sets are also called 3-AP-free sequences or progression-free sets. They have also been called non-averaging sets, but this term has also been used to denote a set of integers none of which can be obtained as the average of any subset of the other numbers. Salem-Spencer sets are named after Raphaël Salem and Donald C. Spencer, who showed in 1942 that Salem–Spencer sets can have nearly-linear size. However a later theorem of Klaus Roth shows that the size is always less than linear.
Examples.
For formula_1 the smallest values of formula_2 such that the numbers from formula_3 to formula_2 have a formula_5-element Salem-Spencer set are
1, 2, 4, 5, 9, 11, 13, 14, 20, 24, 26, 30, 32, 36, ... (sequence in the OEIS)
For instance, among the numbers from 1 to 14, the eight numbers
{1, 2, 4, 5, 10, 11, 13, 14}
form the unique largest Salem-Spencer set.
This example is shifted by adding one to the elements of an infinite Salem–Spencer set, the Stanley sequence
0, 1, 3, 4, 9, 10, 12, 13, 27, 28, 30, 31, 36, 37, 39, 40, ... (sequence in the OEIS)
of numbers that, when written as a ternary number, use only the digits 0 and 1. This sequence is the lexicographically first infinite Salem–Spencer set. Another infinite Salem–Spencer set is given by the cubes
0, 1, 8, 27, 64, 125, 216, 343, 512, 729, 1000, ... (sequence in the OEIS)
It is a theorem of Leonhard Euler that no three cubes are in arithmetic progression.
Size.
In 1942, Salem and Spencer published a proof that the integers in the range from formula_3 to formula_2 have large Salem–Spencer sets, of size formula_8. The denominator of this expression uses big O notation, and grows more slowly than any power of formula_2, so the sets found by Salem and Spencer have a size that is nearly linear. This bound disproved a conjecture of Paul Erdős and Pál Turán that the size of such a set could be at most formula_10 for some formula_11.
The construction of Salem and Spencer was improved by Felix Behrend in 1946, who found sets of size formula_12.
In 1952, Klaus Roth proved Roth's theorem establishing that the size of a Salem-Spencer set must be formula_13. Therefore, although the sets constructed by Salem, Spencer, and Behrend have sizes that are nearly linear, it is not possible to improve them and find sets whose size is actually linear. This result became a special case of Szemerédi's theorem on the density of sets of integers that avoid longer arithmetic progressions. To distinguish Roth's bound on Salem–Spencer sets from Roth's theorem on Diophantine approximation of algebraic numbers, this result has been called "Roth's theorem on arithmetic progressions". After several additional improvements to Roth's theorem, the size of a Salem–Spencer set has been proven to be formula_14. An even better bound of formula_15 (for some formula_11 that has not been explicitly computed) was announced in 2020 in a preprint. In 2023 a new bound of formula_17 was found by computers scientist Kelley and Meka and shortly after an exposition in more familiar mathematical terms was given by Bloom and Sisask who have since also improved the exponent of the Kelly-Meka bound to formula_18 (and conjectured formula_19) in a preprint.
Construction.
A simple construction for a Salem–Spencer set (of size considerably smaller than Behrend's bound) is to choose the ternary numbers that use only the digits 0 and 1, not 2. Such a set must be progression-free, because if two of its elements formula_20 and formula_21 are the first and second members of an arithmetic progression, the third member must have the digit two at the position of the least significant digit where formula_20 and formula_21 differ. The illustration shows a set of this form, for the three-digit ternary numbers (shifted by one to make the smallest element 1 instead of 0).
Behrend's construction uses a similar idea, for a larger odd radix formula_24. His set consists of the numbers whose digits are restricted to the range from formula_25 to formula_26 (so that addition of these numbers has no carries), with the extra constraint that the sum of the squares of the digits is some chosen value formula_5. If the digits of each number are thought of as coordinates of a vector, this constraint describes a sphere in the resulting vector space, and by convexity the average of two distinct values on this sphere will be interior to the sphere rather than on it. Therefore, if two elements of Behrend's set are the endpoints of an arithmetic progression, the middle value of the progression (their average) will not be in the set. Thus, the resulting set is progression-free.
With a careful choice of formula_28, and a choice of formula_5 as the most frequently-occurring sum of squares of digits, Behrend achieves his bound.
In 1953, Leo Moser proved that there is a single infinite Salem–Spencer sequence achieving the same asymptotic density on every prefix as Behrend's construction.
By considering the convex hull of points inside a sphere, rather than the set of points on a sphere,
it is possible to improve the construction by a factor of formula_30. However, this does not affect the size bound in the form stated above.
Generalization.
The notion of Salem–Spencer sets (3-AP-free set) can be generalized to formula_5-AP-free sets, in which formula_5 elements form an arithmetic progression if and only if they are all equal. gave constructions of large formula_5-AP-free sets.
Computational results.
Gasarch, Glenn, and Kruskal have performed a comparison of different computational methods for large subsets of formula_34 with no arithmetic progression. Using these methods they found the exact size of the largest such set for formula_35. Their results include several new bounds for different values of formula_2, found by branch-and-bound algorithms that use linear programming and problem-specific heuristics to bound the size that can be achieved in any branch of the search tree. One heuristic that they found to be particularly effective was the "thirds method", in which two shifted copies of a Salem–Spencer set for formula_2 are placed in the first and last thirds of a set for formula_38.
Applications.
In connection with the Ruzsa–Szemerédi problem, Salem–Spencer sets have been used to construct dense graphs in which each edge belongs to a unique triangle. 
Salem–Spencer sets have also been used in theoretical computer science. They have been used in the design of the Coppersmith–Winograd algorithm for fast matrix multiplication, and in the construction of efficient non-interactive zero-knowledge proofs. Recently, they have been used to show size lower bounds for graph spanners, and the strong exponential time hypothesis based hardness of the subset sum problem.
These sets can also be applied in recreational mathematics to a mathematical chess problem of
placing as few queens as possible on the main diagonal of an formula_39 chessboard so that all squares of the board are attacked. The set of diagonal squares that remain unoccupied must form a Salem–Spencer set, in which all values have the same parity (all odd or all even).
The smallest possible set of queens is the complement of the largest Salem–Spencer subset of the odd numbers in formula_34.
This Salem-Spencer subset can be found by doubling and subtracting one from the values in a Salem–Spencer subset of all the numbers in formula_41
References.
 ;templatestyles src="Reflist/styles.css" / ;