An Efficient Algorithm for Finding Maximum Salem–Spencer Sets
In this note, we describe an algorithm for finding all maximum-size Salem–Spencer sets (3-AP-free sets) on the interval [1, n]. We provide: the code implementing the algorithm; computed results for n from 6 to N; a comparison with published values; and a proof of completeness (the algorithm does not miss any maximum set) and optimality (each found set has maximum size).
Authors
- Светлана Матренина
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24546481
- Primary Topic
- Analytic Number Theory Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00