/- 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 349

Reference: erdosproblems.com/349

namespace Erdos349 open Set Filter Real Nat Function

This defines the core property of the problem: For what values of $t,\alpha \in (0,\infty)$ is the sequence $\lfloor t\alpha^n\rfloor$ complete?

def IsGoodPair (t α : ) : Prop := IsAddComplete (range (fun n t * α ^ n))

For what values of $t,\alpha \in (0,\infty)$ is the sequence $\lfloor t\alpha^n\rfloor$ complete (that is, all sufficiently large integers are the sum of distinct integers of the form $\lfloor t\alpha^n\rfloor$)?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_349 : {(t, α) | 0 < t 0 < α IsGoodPair t α} = answer(sorry) := {(t, α) | 0 < t 0 < α IsGoodPair t α} = sorry All goals completed! 🐙

It seems likely that the sequence is complete for all for all $t>0$ and all $1 < \alpha < \frac{1+\sqrt{5}}{2}$.

@[category research open, AMS 11] theorem declaration uses 'sorry'complete_for_alpha_in_Ioo_one_to_goldenRatio (t α : ) (ht : 0 < t) ( : α Set.Ioo 1 ((1 + 5) / 2)) : IsGoodPair t α := t:α:ht:0 < t:α Ioo 1 ((1 + 5) / 2)IsGoodPair t α All goals completed! 🐙

For any $k$ there exists some $t_k\in (0,1)$ such that the set of $\alpha$ such that the sequence $\lfloor t_k\alpha^n\rfloor$ is complete consists of at least $k$ disjoint line segments.

@[category research solved, AMS 11] theorem declaration uses 'sorry'exists_t_for_k_disjoint_segments (k : ) : t Ioo 0 1, (ι : Type), k (Set.univ : Set ι).encard I : ι Set , ( i, 2 (I i).encard (I i).Nonempty IsConnected (I i)) Pairwise (Disjoint on I) ( i, I i) {α | α > 0 IsGoodPair t α} := k: t Ioo 0 1, ι, k univ.encard I, (∀ (i : ι), 2 (I i).encard (I i).Nonempty IsConnected (I i)) Pairwise (Disjoint on I) i, I i {α | α > 0 IsGoodPair t α} All goals completed! 🐙

Is it true that the terms of the sequence $\lfloor (3/2)^n\rfloor$ are odd infinitely often and even infinitely often?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_349.variants.floor_3_halves_odd : answer(sorry) {n | Odd (3/2 : ) ^ n}.Infinite := True {n | Odd (3 / 2) ^ n}.Infinite All goals completed! 🐙

Is it true that the terms of the sequence $\lfloor (3/2)^n\rfloor$ are even infinitely often?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_349.variants.floor_3_halves_even : answer(sorry) {n | Even (3/2 : ) ^ n}.Infinite := True {n | Even (3 / 2) ^ n}.Infinite All goals completed! 🐙

For $\alpha > 2$ and any $t > 0$, the sequence $\lfloor t\alpha^n\rfloor$ is not additively complete; equivalently $(t, \alpha)$ is not a "good pair". A partial result on the open Erdős Problem 349: it complements complete_for_alpha_in_Ioo_one_to_goldenRatio.

The proof is recorded via the formal_proof mechanism rather than written inline, as it exceeds the repository's proof-length guideline.

@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/cepadugato/formal-conjectures/blob/23c629bc2347864782ce88f957a64d6567b978a1/FormalConjectures/ErdosProblems/349.lean#L87"] theorem declaration uses 'sorry'alpha_gt_two_not_isGoodPair (t α : ) (ht : 0 < t) ( : 2 < α) : ¬ IsGoodPair t α := t:α:ht:0 < t:2 < α¬IsGoodPair t α All goals completed! 🐙

For $0 < \alpha \le 1$ and any $t > 0$, $(t, \alpha)$ is not a good pair: every term $\lfloor t\alpha^n\rfloor$ lies in the finite interval $[0, \lfloor t\rfloor]$ (since $\alpha^n \le 1$), so every subset sum is bounded by the constant $\sum_{i \in [0,\lfloor t\rfloor]} i$, and no large integer can be a subset sum. A partial result on the open Erdős Problem 349, complementing the $2 < \alpha$ and integer-coefficient cases.

@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/cepadugato/formal-conjectures/blob/erdos-349-integer-characterization-proof/FormalConjectures/ErdosProblems/349.lean"] theorem declaration uses 'sorry'alpha_le_one_not_isGoodPair (t α : ) (ht : 0 < t) (hα0 : 0 < α) (hα1 : α 1) : ¬ IsGoodPair t α := t:α:ht:0 < thα0:0 < αhα1:α 1¬IsGoodPair t α All goals completed! 🐙

Binary expansion. Every natural number $k$ is a sum of distinct powers of two: there is a finite set $E$ of exponents with $k = \sum_{i \in E} 2^i$. Proved by strong induction: subtract the largest power $2^m \le k$, recurse on the remainder.

@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/cepadugato/formal-conjectures/blob/erdos-349-integer-characterization-proof/FormalConjectures/ErdosProblems/349.lean"] theorem declaration uses 'sorry'exists_finset_sum_two_pow (k : ) : E : Finset , k = i E, 2 ^ i := k: E, k = i E, 2 ^ i All goals completed! 🐙

The pair $(1, 2)$ is good. The powers of two $\lfloor 1\cdot 2^n\rfloor = 2^n$ form an additively complete set: every $k \ge 1$ is a finite sum of distinct powers of two.

@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/cepadugato/formal-conjectures/blob/erdos-349-integer-characterization-proof/FormalConjectures/ErdosProblems/349.lean"] theorem declaration uses 'sorry'one_two_isGoodPair : IsGoodPair 1 2 := IsGoodPair 1 2 All goals completed! 🐙

The dyadic fiber at $\alpha = 2$. For every $k$, the pair $(1/2^k, 2)$ is good: the sequence $\lfloor 2^n / 2^k\rfloor$ is additively complete because at index $n = m + k$ it equals the exact power $2^m$, so its range contains all powers of two, which already form an additively complete set. Uses monotonicity IsAddComplete.mono.

@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/cepadugato/formal-conjectures/blob/erdos-349-integer-characterization-proof/FormalConjectures/ErdosProblems/349.lean"] theorem declaration uses 'sorry'dyadic_two_isGoodPair (k : ) : IsGoodPair (1 / 2 ^ k) 2 := k:IsGoodPair (1 / 2 ^ k) 2 All goals completed! 🐙

Integer leading coefficient $t \ge 2$ blocks completeness. For every integer base $\alpha$, the pair $(t, \alpha)$ with integer $t \ge 2$ is not good: $\lfloor t\alpha^n\rfloor = t\alpha^n$ is a multiple of $t$, so every subset sum is too, but two consecutive large integers cannot both be multiples of $t$. Generalizes the parity obstruction ($t = 2$). A partial result on Erdős Problem 349.

@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/cepadugato/formal-conjectures/blob/erdos-349-integer-characterization-proof/FormalConjectures/ErdosProblems/349.lean"] theorem declaration uses 'sorry'int_coeff_ge_two_not_isGoodPair (t : ) (ht : 2 t) (α : ) : ¬ IsGoodPair (t : ) (α : ) := t:ht:2 tα:¬IsGoodPair t α All goals completed! 🐙

Erdős Problem 349, complete characterization on positive integer pairs. For integers $t \ge 1$, $\alpha \ge 1$, the pair $(t, \alpha)$ is good (i.e. $\lfloor t\alpha^n\rfloor$ is additively complete) iff $(t, \alpha) = (1, 2)$. Assembles the four partial results: $(1,2)$ is good, $\alpha \le 1$ fails, $2 < \alpha$ fails (alpha_gt_two_not_isGoodPair), and integer $t \ge 2$ fails.

@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/cepadugato/formal-conjectures/blob/erdos-349-integer-characterization-proof/FormalConjectures/ErdosProblems/349.lean"] theorem declaration uses 'sorry'integer_isGoodPair_iff (t α : ) (ht : 1 t) ( : 1 α) : IsGoodPair (t : ) (α : ) t = 1 α = 2 := t:α:ht:1 t:1 αIsGoodPair t α t = 1 α = 2 All goals completed! 🐙 end Erdos349