/- Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Erdős Problem 288

Reference: erdosproblems.com/288

namespace Erdos288

Is it true that there are only finitely many pairs of intervals $I_1$, $I_2$ such that $$ \sum_{n_1 \in I_1} \frac{1}{n_1} + \sum_{n_2 \in I_2} \frac{1}{n_2} \in \mathbb{N}? $$

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_288 : answer(sorry) Set.Finite { I : Fin 2 ℕ+ × ℕ+ | j, (I j).1 (I j).2 n : ℕ+, ( j : Fin 2, nⱼ Set.Icc (I j).1 (I j).2, (nⱼ⁻¹ : )) = n } := True {I | (j : Fin 2), (I j).1 (I j).2 n, j, nⱼ (Set.Icc (I j).1 (I j).2).toFinset, (↑nⱼ)⁻¹ = n}.Finite All goals completed! 🐙

This is still open even if $|I_2| = 1$.

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_288.variants.i2_card_eq_1 : answer(sorry) Set.Finite { (I, n₂) : (ℕ+ × ℕ+) × ℕ+ | I.1 I.2 n : ℕ+, n₁ Set.Icc I.1 I.2, (n₁⁻¹ : ) + (n₂⁻¹ : ) = n } := True {(I, n₂) | I.1 I.2 n, n₁ (Set.Icc I.1 I.2).toFinset, (↑n₁)⁻¹ + (↑n₂)⁻¹ = n}.Finite All goals completed! 🐙

It is perhaps true with two intervals replaced by any $k$ intervals.

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_288.variants.k_intervals : answer(sorry) k, Set.Finite { I : Fin k ℕ+ × ℕ+ | j, (I j).1 (I j).2 n : ℕ+, ( j : Fin k, nⱼ Set.Icc (I j).1 (I j).2, (nⱼ⁻¹ : )) = n } := True (k : ), {I | (j : Fin k), (I j).1 (I j).2 n, j, nⱼ (Set.Icc (I j).1 (I j).2).toFinset, (↑nⱼ)⁻¹ = n}.Finite All goals completed! 🐙

Is it true for any $k > 2$ that only finitely many $k$ intervals satisfy this condition?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_288.variants.exists_k_gt_2 : answer(sorry) k > 2, Set.Finite { I : Fin k ℕ+ × ℕ+ | j, (I j).1 (I j).2 n : ℕ+, ( j : Fin k, nⱼ Set.Icc (I j).1 (I j).2, (nⱼ⁻¹ : )) = n } := True k > 2, {I | (j : Fin k), (I j).1 (I j).2 n, j, nⱼ (Set.Icc (I j).1 (I j).2).toFinset, (↑nⱼ)⁻¹ = n}.Finite All goals completed! 🐙 end Erdos288