Title:Sequence
Statement:Conjecture: satisfies the linear recurrence with constant coefficients , i.e., for .
- Harvey P. Dale, Jan 28 2025
The conjecture is false: the recurrence first fails at , i.e. for the term .
Since is irrational, no linear recurrence with constant integer coefficients can hold. Indeed, it follows from known results that if satisfies a linear recurrence with constant integer coefficients and exists, then must be rational.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05159 [math.NT] · NS.05159v1 for this version |
| Declaration: | OeisA190363.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | cc549c4816cc8f34934dcc2bd803c6bdd7f886ddf4f266ffd30851ab518c7fb8 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/190363.lean |
Formal statement
theorem conjecture :
¬ ∀ n : ℕ, 1 ≤ n → (a (n + 21) : ℤ) = a (n + 17) + a (n + 4) - a nShow the full Challenge.lean (115 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Sequence $a(n) = n + \lfloor n r / t \rfloor + \lfloor n s / t \rfloor$
The sequence $a(n)$ is given by $a(n) = n + \lfloor n r / t \rfloor + \lfloor n s / t \rfloor$
where $r = 1$, $s = \sqrt{5/4}$, and $t = \sqrt{4/5}$. Equivalently,
$$a(n) = 2n + \lfloor n \sqrt{5/4} \rfloor + \lfloor n/4 \rfloor.$$
*References:*
- [A190363](https://oeis.org/A190363)
-/
@[expose] public section
namespace OeisA190363
@[category API, AMS 11]
private lemma floor_mul_sqrt_five_div_four (n k : ℕ)
(h1 : (k : ℝ) ^ 2 ≤ (n : ℝ) ^ 2 * (5 / 4))
(h2 : (n : ℝ) ^ 2 * (5 / 4) < ((k : ℝ) + 1) ^ 2) :
Int.floor ((n : ℝ) * Real.sqrt (5 / 4)) = k := by
rw [Int.floor_eq_iff]
have hn : (0 : ℝ) ≤ n := Nat.cast_nonneg n
have hk : (0 : ℝ) ≤ k := Nat.cast_nonneg k
have h_eq : (n : ℝ) * Real.sqrt (5 / 4) = Real.sqrt ((n : ℝ) ^ 2 * (5 / 4)) := by
rw [Real.sqrt_mul (sq_nonneg _), Real.sqrt_sq hn]
rw [h_eq, Int.cast_natCast]
constructor
· rw [← Real.sqrt_sq hk]
exact Real.sqrt_le_sqrt h1
· have hk1 : (0 : ℝ) ≤ (k : ℝ) + 1 := by positivity
rw [← Real.sqrt_sq hk1]
exact Real.sqrt_lt_sqrt (by positivity) h2
/--
The sequence $a(n) = 2n + \lfloor n \sqrt{5/4} \rfloor + \lfloor n/4 \rfloor$.
-/
noncomputable def a (n : ℕ) : ℕ :=
2 * n + (Int.floor ((n : ℝ) * Real.sqrt (5 / 4))).toNat + n / 4
@[category test, AMS 11]
theorem a_1 : a 1 = 3 := by
have h := floor_mul_sqrt_five_div_four 1 1 (by norm_num) (by norm_num)
unfold a
rw [h]
rfl
@[category test, AMS 11]
theorem a_2 : a 2 = 6 := by
have h := floor_mul_sqrt_five_div_four 2 2 (by norm_num) (by norm_num)
unfold a
rw [h]
rfl
@[category test, AMS 11]
theorem a_3 : a 3 = 9 := by
have h := floor_mul_sqrt_five_div_four 3 3 (by norm_num) (by norm_num)
unfold a
rw [h]
rfl
@[category test, AMS 11]
theorem a_4 : a 4 = 13 := by
have h := floor_mul_sqrt_five_div_four 4 4 (by norm_num) (by norm_num)
unfold a
rw [h]
rfl
@[category test, AMS 11]
theorem a_5 : a 5 = 16 := by
have h := floor_mul_sqrt_five_div_four 5 5 (by norm_num) (by norm_num)
unfold a
rw [h]
rfl
/--
Conjecture: $a(n)$ satisfies the linear recurrence with constant coefficients
$0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, -1$, i.e.,
$a(n + 21) = a(n + 17) + a(n + 4) - a(n)$ for $n \ge 1$.
- _Harvey P. Dale_, Jan 28 2025
The conjecture is false: the recurrence first fails at $n = 140$, i.e. for the term
$a(140 + 21) = a(161) = 543 \ne 542 = a(157) + a(144) - a(140)$.
Since
$\lim_{n\to\infty} \frac{a(n)}{n} = \frac{9}{4} + \frac{\sqrt{5}}{2}$ is irrational,
no linear recurrence with constant integer coefficients can hold. Indeed, it follows
from known results that if $a(n)$ satisfies a linear recurrence with constant integer coefficients
and $\lim_{n \to \infty} \frac{a_n}{n} = \alpha$ exists, then $\alpha$ must be rational.
-/
@[category research solved, AMS 11]
theorem conjecture :
¬ ∀ n : ℕ, 1 ≤ n → (a (n + 21) : ℤ) = a (n + 17) + a (n + 4) - a n := by
sorry
end OeisA190363
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA190363.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-190363 nosorry submit oeis-190363 nosorry/oeis-190363/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.