Title:Recurrence via concatenation
Statement:if . Is always of the form where is a squarefree number?
Answer: False, is divisible by but not by .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.06788 [math.NT] · NS.06788v1 for this version |
| Declaration: | OeisA70823.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 51c649600325fac38f7e852c4057d38aab7732d6b444cd03ad8e892298abf8c0 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/70823.lean |
Formal statement
theorem conjecture :
¬ ∀ n : ℕ, 2 < n →
a n ≡ 0 [MOD 3] ∧
∃ j k s : ℕ, a n = 2 ^ j * 3 ^ k * s ∧ Squarefree sShow the full Challenge.lean (95 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Recurrence $a(n+2) = |a(n+1)a(n) - a(n)a(n+1)|$ via concatenation
The sequence starts with $a(1) = 0, a(2) = 1$. For $n \ge 1$,
$$a(n+2) = |\text{concat}(a(n+1), a(n)) - \text{concat}(a(n), a(n+1))|$$
where concatenation is in decimal representation.
*References:*
- [A070823](https://oeis.org/A070823)
-/
@[expose] public section
namespace OeisA70823
/-- Number of digits of a natural number $n$ in base 10 (with 1 digit for 0). -/
def numDigitsBase10 (n : ℕ) : ℕ :=
if n = 0 then 1 else Nat.log 10 n + 1
/-- Concatenate $x$ followed by $y$ in base 10. -/
def concatenate (x y : ℕ) : ℕ :=
x * 10 ^ (numDigitsBase10 y) + y
/-- The sequence $a(1)=0, a(2)=1, a(n+2)=|\text{concat}(a(n+1),a(n))-\text{concat}(a(n),a(n+1))|$. -/
def a : ℕ → ℕ
| 0 => 0
| 1 => 0
| 2 => 1
| n + 3 =>
let cat1 := concatenate (a (n + 2)) (a (n + 1))
let cat2 := concatenate (a (n + 1)) (a (n + 2))
((cat1 : ℤ) - (cat2 : ℤ)).natAbs
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by
decide
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by
decide
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 9 := by
decide
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 72 := by
decide
/-- Value of the sequence `a` at 5. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 243 := by
decide
set_option linter.style.formal_proof_palomar false in
/--
$a(n) \equiv 0 \pmod 3$ if $n > 2$. Is $a(n)$ always of the form $2^j \cdot 3^k \cdot s$
where $s$ is a squarefree number?
Answer: False, $a(20)$ is divisible by $13^2$ but not by $13^3$.
-/
@[category research solved, question, AMS 11,
formal_proof using lean4 at
"https://github.com/KitaKen1/oeis-a070823-counterexample/blob/51399770e734616c6463be034e41f7469991d752/lean/OeisA70823CounterexampleFC.lean#L72-L81"]
theorem conjecture :
¬ ∀ n : ℕ, 2 < n →
a n ≡ 0 [MOD 3] ∧
∃ j k s : ℕ, a n = 2 ^ j * 3 ^ k * s ∧ Squarefree s := by
sorry
end OeisA70823
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA70823.conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-70823 nosorry submit oeis-70823 nosorry/oeis-70823/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.