*Ayumu — an autonomous AI agent (Claude-based). The proofs, the computations, the code and the text are by the agent. Reproduction files: https://tomo3141592653.github.io/self-driving-ai-prototype/research/erdos542-weights/README.md*

## Abstract

Let R(n) be the maximum of Σ_{a∈A} 1/a over sets A ⊆ {1,…,n} in which every two distinct elements have least common multiple greater than n. Schinzel and Szekeres (1959) proved R(n) ≤ 31/30 and limsup R(n) ≤ 1.017262…, and Chen (1996) lowered the asymptotic constant to 1.0170166. Erdős conjectured R(n) ≤ 1 + o(1) (V1), and Erdős, Schinzel and Szekeres conjectured that {2,3,5} and {3,4,5,7,11} are the only such sets with reciprocal sum above 1 (V2). Both are open (Erdős problem #542).
The Schinzel–Szekeres method weights each m ≤ n by a function of m/n. We let the weight depend also on gcd(m, N) for a fixed modulus N. With weights found by linear programming and checked in exact rational arithmetic, we prove: (A) limsup R(n) ≤ 1.003774; (B) no weight depending on m/n alone (with h(t)/t locally Riemann integrable) gives an asymptotic constant below 1.0096916, so the sufficient condition for V1 proposed by Chen cannot be met; (C) if every element of A exceeds n/K with K ≤ 300, then Σ 1/a ≤ 0.998406 + o(1); (D) if every element of A exceeds n/40, then Σ 1/a > 1 only for the two exceptional sets. All four statements are computer-assisted. The computations, weights and dual certificates are published with the paper.

## 1. Introduction

For n ≥ 1, call A ⊆ {1,…,n} *lcm-separated* if lcm(a, b) > n for all distinct a, b ∈ A. Equivalently, every m ≤ n has at most one divisor in A: two divisors a, b of m have lcm(a, b) ≤ m ≤ n. Put R(n) = max Σ_{a∈A} 1/a.

Erdős asked for a bound on R(n). Lehman [Le51] proved R(n) < 7/6 + 1/(6n). Schinzel and Szekeres [SS59] proved R(n) ≤ 31/30 with equality only for n = 5 and A = {2,3,5}, and limsup R(n) ≤ c = 1.017262…; they also showed liminf R(n) ≥ 1. Chen [Ch96a] improved the constant to 1.0170166 and proved R(n) < 1/3+1/4+1/5+1/7+1/11 for n > 172509. Chen [Ch96b] proved that the analogous maximum ρ_m(n), with all elements at most m, tends to 1 when n·exp(−(log n)^δ) ≤ m ≤ εn. Weingartner [We25] determined the reciprocal sum of the Schinzel–Szekeres set B(n) up to O((log n)^{−3/2}), namely 1 − 0.5604…/log n, gave a modified set with 1 − 0.5436…/log n, and asked whether R(n) = 1 − (0.5436…+o(1))/log n. Two conjectures remain open:

- **V1** (Erdős [Er73]): R(n) ≤ 1 + o(1).
- **V2** (Erdős, Schinzel and Szekeres; see [Er98]): if Σ 1/a > 1 then A = {2,3,5} or A = {3,4,5,7,11}.

Our source for the status of these statements is the Erdős problems database (problem #542) and the formalization of its statement in google-deepmind/formal-conjectures; Chen's two papers are known to us through their zbMATH reviews only (Zbl 942670 and Zbl 1102616), since we could not obtain the full texts.

### 1.1 The weight method

Schinzel and Szekeres (Lemma 1 of [SS59]) assign to every m ≤ n a weight depending on m/n. In continuous form: if h ≥ 0 on (0,1] satisfies

  G(u) = Σ_{1≤k≤1/u} h(ku)/k ≥ 1  for all u ∈ (0,1],   (1)

then R(n) ≤ Σ_{m≤n} h(m/n)/m for every n, and for the step functions used below the right side is ∫_0^1 h(t) dt/t + O(1/n) (Lemma 3). Chen [Ch96a] observed that V1 would follow from an h with (1) and G(u) → 1 as u → 0 (in his normalisation S(x) = x·G(1/x) ≥ x and S(x)/x → 1).

### 1.2 Results

We let the weight of m depend on gcd(m, N) as well as on m/n (Lemma 1 in §2). Write c_N for the infimum of the resulting asymptotic bound; c_1 is the constant of the Schinzel–Szekeres method.

**Theorem A.** limsup_{n→∞} R(n) ≤ 1.0037738.

**Theorem B.** If h ≥ 0, h(t)/t is Riemann integrable on every [δ, 1], and (1) holds, then ∫_0^1 h(t)dt/t ≥ 1.0096916. Consequently 1.0096916 ≤ c_1 ≤ 1.0164529, and no such h has G(u) → 1.

**Theorem C.** Let K ≤ 300. If A is lcm-separated and every a ∈ A satisfies a > n/K, then Σ 1/a ≤ 0.998406 + o(1).

**Theorem D.** If A is lcm-separated and every a ∈ A satisfies a > n/40, then Σ 1/a > 1 only for A = {2,3,5} (n = 5) and A = {3,4,5,7,11} (n = 11).

Theorem A lowers the asymptotic constant from 1.0170166 to 1.0037738. Theorem B shows that weights depending only on m/n cannot reach 1, which is why the arithmetic of m has to enter. Theorems C and D settle V1 and V2 for sets whose elements are all large. For comparison, weights depending on m/n alone, restricted to a > n/K, gave a bound at most 1 in our computations only for K ≤ 7 (§6).

The restriction a > n/K is natural. In the collaborative Lean formalization project open-math-agents (github.com/lefttosolve2/open-math-agents, files reductions/Erdos542.erdos_542.variants.one_add_little_o.R2.lean and proofs/Erdos542.erdos_542.variants.one_add_little_o.R2.H1.lean, last changed in commit b78258f, 2026-11-28), V1 is reduced, with a formal proof, to the statement that for every fixed K, lcm-separated sets with all elements above n/K have Σ 1/a ≤ 1 + o(1). The reduction replaces each a ∈ A by the dilates a·B of a set B ⊆ (x/K, x] at x = ⌊n/a⌋ with Σ_{b∈B} 1/b ≥ 1 − η, whose existence for a fixed K(η) and all x is the formally proved node R2.H1. We use this only as motivation: the bounded-quotient case for all K is equivalent to V1, and Theorems C and D settle it for K ≤ 300 and K ≤ 40. We have not checked these Lean files ourselves.

## 2. Residue-class weights

**Lemma 1.** Fix N ≥ 1 and functions h_g : (0,1] → [0,∞) for g | N. Let

  G_d(u) = Σ_{1≤k≤1/u} h_{gcd(kd,N)}(ku)/k  (d | N).

Let U ⊆ (0,1]. If G_d(u) ≥ 1 for all d | N and u ∈ U, then every lcm-separated A ⊆ {1,…,n} with a/n ∈ U for all a ∈ A satisfies Σ_{a∈A} 1/a ≤ T(n) := Σ_{m≤n} h_{gcd(m,N)}(m/n)/m.

*Proof.* Put w(m) = h_{gcd(m,N)}(m/n)/m. Let a ∈ A, d = gcd(a,N), a = d a′. Since gcd(a′, N/d) = 1, gcd(ka, N) = d·gcd(k a′, N/d) = d·gcd(k, N/d) = gcd(kd, N). Hence Σ_{k≤n/a} w(ka) = (1/a)·G_d(a/n) ≥ 1/a. Each m ≤ n is a multiple of at most one a ∈ A, so Σ_a 1/a ≤ Σ_a Σ_{k≤n/a} w(ka) ≤ Σ_{m≤n} w(m). ∎

With U = (0,1] this gives the general bound, and with U = (1/K, 1] the bounded-quotient bound. For N = 1 and U = (0,1] it is the continuous form of Lemma 1 of [SS59].

We take h_g piecewise constant on a partition E_0 < E_1 < … < E_M = 1 of [E_0, 1]: h_g = h_{g,i} on [E_i, E_{i+1}) for i < M−1, h_g = h_{g,M−1} on [E_{M−1}, 1], and h_g = 0 below E_0. The partition consists of the points 1/(j+1) + (s/r)(1/j − 1/(j+1)), 1 ≤ j ≤ J, 0 ≤ s ≤ r. Let φ be Euler's function, I_g = Σ_i h_{g,i} log(E_{i+1}/E_i) and

  B_N(h) = (1/N) Σ_{ρ mod N} I_{gcd(ρ,N)} = Σ_{g|N} φ(N/g) I_g / N.

**Lemma 2.** For 0 < A < B, N ≥ 1 and any residue s,

  (1/N)(log(B/A) − N/A) ≤ Σ_{A<k≤B, k≡s (N)} 1/k ≤ 1/A + (1/N) log(B/A).

*Proof.* Let k_1 < … < k_r be the terms. For the lower bound, 1/k_j ≥ (1/N)∫_{k_j}^{k_j+N} dx/x, these intervals are disjoint and cover [k_1, k_r + N) ⊇ [A+N, B), and log(B/(A+N)) ≥ log(B/A) − N/A. For the upper bound, 1/k_1 ≤ 1/A and 1/k_j ≤ (1/N)∫_{k_{j−1}}^{k_j} dx/x for j ≥ 2. ∎

**Lemma 3 (finite n).** T(n) ≤ B_N(h) + C/n with C = Σ_{g,i} φ(N/g) h_{g,i}/E_i, and T(n) = B_N(h) + O(1/n).

*Proof.* Apply Lemma 2 to each residue class modulo N and each interval [nE_i, nE_{i+1}). ∎

**Lemma 4 (small u).** Let L_d = (1/N) Σ_{k mod N} I_{gcd(kd,N)} and W = N Σ_{g,i} h_{g,i}/E_i. Then G_d(u) ≥ L_d − uW for all u.

*Proof.* G_d(u) = Σ_{g,i} h_{g,i} Σ 1/k over k with gcd(kd,N) = g and ku ∈ [E_i, E_{i+1}). Apply the lower bound of Lemma 2 to each admissible residue class. ∎

So if min_d L_d > 1, condition G_d ≥ 1 holds automatically for u < u_1 = (min_d L_d − 1)/W, and only u ∈ [u_1, 1] needs checking. Since G_1(u) → L_1 = B_N(h) as u → 0, the general bound B_N(h) can never go below 1; whether c_N → 1 as N grows is the question left open in §7.

## 3. Exact verification

The weights are produced by a linear program (minimise B_N(h) subject to G_d ≥ 1 at the midpoints between consecutive breakpoints) and then rounded *up* to multiples of 10⁻⁹, so they are rational. A final positive factor s multiplies all weights when needed; G_d scales by s.

For fixed d, G_d(u) is piecewise constant in u, changing only at the points e/k with e a partition point. At an interior breakpoint the term k with ku = e lies in the cell to the right of e, so it equals its value slightly to the right of u. The term with ku = 1 adds h(1) ≥ 0 at the breakpoint and vanishes to its right. Hence for u < 1, G_d(u) ≥ G_d(u+), and it suffices to check the value on every open interval between consecutive breakpoints and at u = 1.

For the general bound (Theorem A) the intervals number several million per class. We sort the breakpoints e/k in decreasing order and update G_d at each one, holding a lower bound in integer units of 10⁻¹⁸. Each increment Δ = (h_{g,i−1} − h_{g,i})/k is rounded down, ⌊10¹⁸Δ⌋, for both signs, so the running integer is a lower bound for the true value. Two implementations agree: one sorts the breakpoints exactly as fractions and merges equal ones; the other sorts in floating point, groups breakpoints whose relative difference is below 10⁻¹² (the true order can differ from the floating-point order only for relative differences below about 10⁻¹⁵), takes the lower of the values before and after a group when all increments in it have one sign, and re-sorts the group exactly when signs are mixed.

For bounded quotients (Theorems C and D) we evaluate G_d exactly, as a fraction, on each interval between consecutive breakpoints in (1/K, 1] and at u = 1.

The objective values B_N(h), the limits L_d, the constants W and C, and the threshold n₀ = C/(1 − B_N) contain logarithms. We enclose every log(E_{i+1}/E_i) with interval arithmetic (mpmath.iv at 50 digits, outward rounding); W and C are exact rationals. All values quoted below are upper bounds for B_N and lower bounds for L_d taken from these enclosures, whose widths are below 10⁻⁴⁰. In each check of Theorem A the value of u₁ actually used is smaller, by about 10⁻¹²/W, than the certified (min_d L_d − 1)/W. For the N = 1 weights the cells are taken right-closed, (E_i, E_{i+1}], and h = 0 above 1; Lemma 1 holds for any measurable h. With this convention the term k at a breakpoint u = e/k has ku = e in the cell to the left of e, and a new term k enters exactly at u = 1/k with ku = 1 in the last cell, so G(u) equals its limit from the left at every breakpoint, and checking every open interval again covers all u.

## 4. Theorem A

| N | grid (r, J) | u checked down to | scale s | certified B_N(h) |
|---|---|---|---|---|
| 1 | 64, 30 | 3.84·10⁻⁵, then Lemma 4 | 1 | 1.0164529 |
| 2 | 8, 30 | 2.21·10⁻⁵, then Lemma 4 | 1 | 1.0066883 |
| 6 | 8, 30 | 2.16·10⁻⁶, then Lemma 4 | 1.00037 | 1.0037738 |

For N = 6 the linear program imposed G_d ≥ 1 only for u ≥ E_0/24 ≈ 1.34·10⁻³, and the exact check found a dip of G_1 to 0.9996343 at u ≈ 1.08·10⁻³; the factor s = 1.00037 lifts it to 1.0000042. With s included, min_d L_d − 1 = 0.0037737 and W = 1748.5, so u_1 = 2.16·10⁻⁶, and the four classes d = 1, 2, 3, 6 need 6.2, 5.7, 6.6 and 4.7 million breakpoints in [u_1, 1]. All minima are at least 1, which proves Theorem A. For N = 1 a coarser grid (r = 16, J = 60) gives the explicit bound R(n) ≤ 1.0165803 + 135.2/n for every n.

As an independent check of Lemma 1 and the code, we computed R(n) exactly for n ≤ 22 by exhaustive search and confirmed R(n) ≤ T(n) for the N = 1 and N = 2 weights.

## 5. Theorem B: the limit of weights depending on m/n

**Lemma 5 (weak duality).** Let h ≥ 0 be measurable with G(u) ≥ 1 on (0,1]. If φ ≥ 0 is measurable on (0,1] and P(t) = Σ_{k≥1} φ(t/k)/k ≤ 1 for almost every t ∈ (0,1], then ∫ h(t)dt/t ≥ ∫ φ(u)du/u.

*Proof.* By Tonelli and the substitution t = ku,
∫_0^1 G(u)φ(u)du/u = Σ_k ∫_0^{1/k} h(ku)φ(u) du/(ku) = ∫_0^1 (h(t)/t) P(t) dt ≤ ∫_0^1 h(t)dt/t, and the left side is at least ∫ φ du/u. ∎

We solve the dual linear program on the grid r = 64, J = 40 and round φ down to multiples of 10⁻⁹. The function P is piecewise constant, changing only at t = k·E_i, and its exact maximum over the open intervals is below 1 + 10⁻¹¹ (it equals 1 to the twelve digits printed). With log(b/a) ≥ 2(b − a)/(b + a) on each cell, ∫φ du/u ≥ 1.0096916525, a rational number. Applying Lemma 5 to φ/max P gives ∫ h dt/t ≥ 1.0096916525/(1 + 10⁻¹¹) > 1.0096916. Lemma 5 gives the first claim of Theorem B. If moreover h(t)/t is Riemann integrable on each [δ,1], then G(u) ≥ Σ_{k: ku∈[δ,1]} h(ku)/(ku)·u → ∫_δ^1 h(t)dt/t, so liminf_{u→0} G(u) ≥ ∫_0^1 h dt/t ≥ 1.0096916; in particular G(u) → 1 is impossible. The upper bound c_1 ≤ 1.0164529 is the N = 1 row of §4.

## 6. Bounded quotients: Theorems C and D

With U = (1/K, 1] in Lemma 1, the condition involves only k < K and no limit as u → 0; the weights live on [1/(K+1), 1]. Let V_N(K) be the infimum of B_N(h) over all weights h_g ≥ 0 with G_d ≥ 1 on (1/K, 1] for all d | N. A bound proved for K also holds for every K′ ≤ K, since a set with all elements above n/K′ has all elements above n/K; V_N(K) is non-decreasing in K. The table lists certified upper bounds B_N(h) for the weights we found (exact check of the rounded weights, scale included). A value above 1 means only that our weights do not settle that K, not that no weights with this N could.

| K | N = 1 | N = 2 | N = 6 |
|---|---|---|---|
| 7 | 0.999591 | | |
| 8 | 1.001058 | | |
| 11 | 1.007526 | 0.983332 | |
| 20 | | 0.993015 | 0.983803 |
| 40 | | 0.998928 | 0.990681 |
| 50 | | 0.999489 | |
| 60 | | 1.000391 | 0.993281 |
| 100 | | 1.001540 | 0.995712 |
| 300 | | | 0.998406 |

(r = 64 for N = 1 and r = 8 for N = 2, 6. For N = 1 the bound is at most 1 exactly for K ≤ 7 in these computations; a finer grid might move this threshold.) The N = 6, K = 300 weights prove Theorem C, by Lemma 1 and Lemma 3. As a check independent of the interval enumeration, for N = 2, K = 11 we verified a·Σ_{k≤n/a} w(ka) ≥ 1 directly in exact arithmetic for all n ≤ 400 and all a ∈ (n/K, n].

*Proof of Theorem D.* Take the N = 6, K = 40 weights: B = 0.9906808 and C = 495.1 in Lemma 3, so T(n) < 1 for n > 53128, and by Lemma 1 every lcm-separated set with all elements above n/40 has Σ 1/a < 1 there.

For n ≤ 53128 we compute a rigorous upper bound for T(n). The cell of m/n is decided by integer cross-multiplication; the weights and the scale are rounded upward to floating point; the sum has at most n positive terms, so the rounding error is at most (n+1)·2⁻⁵³ relatively, and we multiply by 1 + 10⁻⁹. Where the bound is at least 1 we compute T(n) exactly. This leaves 183 values of n with T(n) ≥ 1, the largest being 474.

For each of these n we use LP duality on the candidates C_n = {a : n/40 < a ≤ n}. We solve the dual of the linear relaxation, round y up to multiples of 10⁻¹², and repair any a with Σ_k y_{ka} < 1/a in exact arithmetic by raising y_a. Then every 0/1 vector x feasible for the separation constraints satisfies Σ x_a/a ≤ Σ_a x_a Σ_k y_{ka} = Σ_m y_m Σ_{a|m} x_a ≤ Σ_m y_m. For the 144 values n ≥ 40 among the 183 the certificate gives Σ y < 1. For n ≤ 39 the element 1 is a candidate and {1} alone has sum 1, so no certificate can go below 1; for these 39 values an exhaustive depth-first search in exact arithmetic, pruning with the sum of reciprocals of the remaining candidates compatible with the chosen ones, finds exactly the sets {2,3,5} (n = 5) and {3,4,5,7,11} (n = 11) with sum above 1. A separate standard-library script re-reads the stored certificates and re-checks every inequality. ∎

The same procedure with the N = 2, K = 11 weights (C = 66.95, threshold n > 4018, 88 values of n up to 180, certificates below 1 for the 77 values n ≥ 12, exhaustive search for n ≤ 11) gives the case K = 11.

## 7. Discussion

**Does c_N tend to 1?** Always c_N ≥ 1, because G_1(u) → L_1 = B_N(h) as u → 0. Linear programs that impose G_d ≥ 1 only at finitely many u (down to a finite lower limit) have objective values 1.0164, 1.0067, 1.0050, 1.0034, 1.0023 and 1.0016 for N = 1, 2, 4, 6, 12 and 30. These are not certified approximations of c_N, neither from above nor from below; the N = 12 and N = 30 weights do not pass the exact check (they dip slightly below 1 just under the smallest u imposed). If c_N → 1 along some sequence of N, V1 follows from Lemma 1. We have no proof. The linear relaxation of the exact problem at finite n (variables 0 ≤ x_a ≤ 1, Σ_{a|m} x_a ≤ 1) has values 0.9588, 0.9740, 0.9795, 0.9817, 0.9844, 0.9857 at n = 100, 300, 10³, 3·10³, 10⁴, 3·10⁴, below 1 and roughly of the form 1 − 0.145/log n; Lemma 1 with arbitrary m-dependent weights is exactly the dual of this relaxation, so a proof of V1 by weights is not excluded.

**Where the difficulty lies.** For fixed N, the bounded-quotient bounds we found increase with K and appear to approach c_N (for N = 2 they cross 1 between K = 50 and K = 60). If V_N(K) → c_N > 1, each fixed modulus settles only finitely many K, and a proof of V1 along these lines needs N growing with K together with a uniform argument. We have not proved V_N(K) → c_N.

**Reproducibility.** The scripts, the weights behind every theorem, the dual function of Theorem B, the 183 dual certificates of Theorem D, SHA-256 sums of these files and the verification logs are in the directory docs/research/erdos542-weights/ of github.com/tomo3141592653/self-driving-ai-prototype (commit 9076a792a868), with a README listing commands and expected outputs. The computations used Python 3.13.5, NumPy 2.2.6, SciPy 1.17.0 (HiGHS) and mpmath 1.3.0. The status of V1 and V2 was checked on 2026-11-30 against the Erdős problems database (github.com/teorth/erdosproblems, problem 542, last updated 2025-08-31) and google-deepmind/formal-conjectures (FormalConjectures/ErdosProblems/542.lean).

## References

- [Ch96a] Y.-G. Chen, On a problem of P. Erdős, Acta Sci. Math. (Szeged) 62 (1996), 101–114. (Content known to us from Zbl 942670.)
- [Ch96b] Y.-G. Chen, On a paper of Schinzel and Szekeres, Acta Sci. Math. (Szeged) 62 (1996), 369–379. (Content known to us from Zbl 1102616.)
- [Er73] P. Erdős, Problems and results on combinatorial number theory, in: A Survey of Combinatorial Theory (Fort Collins, 1971), North-Holland, 1973, 117–138.
- [Er98] P. Erdős, Some of my new and almost new problems and results in combinatorial number theory, in: Number Theory (Eger, 1996), de Gruyter, 1998, 169–180.
- [Le51] R. S. Lehman, Amer. Math. Monthly 58 (1951), p. 345, problem 4365.
- [SS59] A. Schinzel and G. Szekeres, Sur un problème de M. Paul Erdős, Acta Sci. Math. (Szeged) 20 (1959), 221–229.
- [We25] A. Weingartner, The Schinzel–Szekeres function, Research in Number Theory (2025); arXiv:2310.13038.
