k-Pell–Lucas numbers close to powers of two
Definition\(k\)-generalized Pell–Lucas numbers#✓fully proved
For natural numbers \(k\) and \(n\), the \(k\)-generalized Pell–Lucas number \(Q^{(k)}_n\) is the natural number defined by \(Q^{(k)}_0 = Q^{(k)}_1 = 2\) and
where \(j\) runs over the integers with \(0 \le j \le n\) and \(j \le k - 2\). For \(k \ge 2\) and \(n \ge k - 2\) this reads \(Q^{(k)}_{n+2} = 2 Q^{(k)}_{n+1} + Q^{(k)}_n + \cdots + Q^{(k)}_{n+2-k}\); for smaller \(n\) the terms of negative index (the \(k - 2\) initial zeros of the sequence) are dropped, and for \(k \le 1\) the sum is empty.
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Introduction.
Used by 9
TheoremInitial value of the generalized Pell–Lucas numbers#✓fully proved
For every natural number \(k\), the \(k\)-generalized Pell–Lucas number \(Q^{(k)}_0\) equals \(2\).
theorem kPellLucas_zero (k : ℕ) : kPellLucas k 0 = 2
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Introduction.
Uses 1
TheoremThe \(k\)-Pell–Lucas number of index one#✓fully proved
For every natural number \(k\), the \(k\)-Pell–Lucas number \(Q^{(k)}_1\) equals \(2\).
theorem kPellLucas_one (k : ℕ) : kPellLucas k 1 = 2
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Introduction.
Uses 1
TheoremRecurrence for the \(k\)-Pell–Lucas numbers#✓fully proved
Let \(Q^{(k)}_n\) denote the \(k\)-generalized Pell–Lucas numbers. For all natural numbers \(k\) and \(n\) with \(k \le n + 2\), \(Q^{(k)}_{n+2} = 2 Q^{(k)}_{n+1} + \sum_{j=0}^{k-2} Q^{(k)}_{n-j}\), where the sum is empty when \(k < 2\). So once all \(k - 1\) earlier terms have nonnegative index, the full recurrence holds.
theorem kPellLucas_add_two (k n : ℕ) (hn : k - 2 ≤ n) :
kPellLucas k (n + 2) =
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (k - 1), kPellLucas k (n - j)
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Introduction.
Uses 1
TheoremThe \(2\)-generalized Pell–Lucas numbers are the Pell–Lucas numbers#✓fully proved
For every natural number \(n\), the \(2\)-generalized Pell–Lucas number \(Q^{(2)}_n\) equals the \(n\)th Pell–Lucas number \(Q_n\); this is the sequence \(2, 2, 6, 14, 34, \ldots\).
theorem kPellLucas_two : kPellLucas 2 = pellLucas
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
public def pellLucas : Nat → Nat
| 0 => 2
| 1 => 2
| n + 2 => 2 * pellLucas (n + 1) + pellLucas n
MathlibExt/Combinatorics/Enumerative/PellLucasNumber.lean:28
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Introduction.
Uses 2
TheoremTwo values of the \(3\)-generalized Pell–Lucas numbers#✓fully proved
The \(3\)-generalized Pell–Lucas numbers \(Q^{(3)}_n\) satisfy \(Q^{(3)}_3 = 16\) and \(Q^{(3)}_6 = 260\).
theorem kPellLucas_three_small : kPellLucas 3 3 = 16 ∧ kPellLucas 3 6 = 260
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Theorem 1.
Uses 1
Theorem\(k\)-Pell–Lucas numbers that are powers of two (Corollary 1)#●ready to prove
Let \(k \ge 2\), \(n \ge 1\) and \(m \ge 1\) be natural numbers, and let \(Q^{(k)}_n\) be the \(n\)th \(k\)-Pell–Lucas number. Then \(Q^{(k)}_n = 2^m\) if and only if either \(n = 1\) and \(m = 1\), or \(n = 3\), \(m = 4\) and \(k \ge 3\).
public theorem_wanted kPellLucas_eq_two_pow_iff (k n m : ℕ) (hk : 2 ≤ k) (hn : 1 ≤ n)
(hm : 1 ≤ m) :
kPellLucas k n = 2 ^ m ↔ (n = 1 ∧ m = 1) ∨ (n = 3 ∧ m = 4 ∧ 3 ≤ k)
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Corollary 1.
Uses 1
TheoremBounds for the dominant root of the \(k\)-Pell–Lucas polynomial (Lemma 1)#●ready to prove
Let \(k \ge 2\) be a natural number and let \(\alpha > 0\) be a real number with \(\alpha^k = 2\alpha^{k-1} + \sum_{i=0}^{k-2} \alpha^i\), that is, a positive real root of \(\Phi_k(x) = x^k - 2x^{k-1} - \sum_{i=0}^{k-2} x^i\). Write \(g_k(z) = (z - 1) / ((k + 1) z^2 - 3kz + k - 1)\) and let \(\varphi\) be the golden ratio. Then (a) \(0.276 < g_k(\alpha) < 0.5\), and \(|g_k(\beta)| < 1\) for every complex root \(\beta \ne \alpha\) of \(\Phi_k\); and (b) \(\varphi^2 (1 - \varphi^{-k}) < \alpha < \varphi^2\).
public theorem_wanted kPellLucas_dominantRoot_bounds (k : ℕ) (hk : 2 ≤ k) (α : ℝ) (hα : 0 < α)
(hroot : α ^ k = 2 * α ^ (k - 1) + ∑ i ∈ Finset.range (k - 1), α ^ i) :
(0.276 < (α - 1) / ((k + 1) * α ^ 2 - 3 * k * α + k - 1) ∧
(α - 1) / ((k + 1) * α ^ 2 - 3 * k * α + k - 1) < 0.5 ∧
∀ β : ℂ, β ^ k = 2 * β ^ (k - 1) + ∑ i ∈ Finset.range (k - 1), β ^ i → β ≠ α →
‖(β - 1) / ((k + 1) * β ^ 2 - 3 * k * β + k - 1)‖ < 1) ∧
goldenRatio ^ 2 * (1 - (goldenRatio ^ k)⁻¹) < α ∧ α < goldenRatio ^ 2
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 1.
TheoremGolden-ratio approximations at the dominant root (Lemma 2)#●ready to prove
Let \(\varphi\) be the golden ratio, let \(k\) and \(n\) be natural numbers with \(k \ge 50\) and \(1 < n < \varphi^{k/2}\), and let \(\alpha > 0\) be a real number with \(\alpha^k = 2\alpha^{k-1} + \sum_{i=0}^{k-2} \alpha^i\). Write \(g_k(z) = (z - 1) / ((k + 1) z^2 - 3kz + k - 1)\). Then (i) \(|(2\alpha - 2)\alpha^n - 2\varphi^{2n+1}| < 4\varphi^{2n} / \varphi^{k/2}\) and (ii) \(|g_k(\alpha) - g_k(\varphi^2)| < 4k / \varphi^k\).
public theorem_wanted kPellLucas_dominantRoot_golden_approx (k n : ℕ) (hk : 50 ≤ k) (hn : 1 < n)
(hnk : (n : ℝ) < goldenRatio ^ ((k : ℝ) / 2)) (α : ℝ) (hα : 0 < α)
(hroot : α ^ k = 2 * α ^ (k - 1) + ∑ i ∈ Finset.range (k - 1), α ^ i) :
|(2 * α - 2) * α ^ n - 2 * goldenRatio ^ (2 * n + 1)| <
4 * goldenRatio ^ (2 * n) / goldenRatio ^ ((k : ℝ) / 2) ∧
|(α - 1) / ((k + 1) * α ^ 2 - 3 * k * α + k - 1) -
(goldenRatio ^ 2 - 1) /
((k + 1) * (goldenRatio ^ 2) ^ 2 - 3 * k * goldenRatio ^ 2 + k - 1)| <
4 * k / goldenRatio ^ k
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 2.
TheoremMain term of the dominant root (Lemma 3)#●ready to prove
Let \(\varphi\) be the golden ratio, let \(k\) and \(n\) be natural numbers with \(k \ge 50\) and \(n < \varphi^{k/2}\), and let \(\alpha > 0\) be a real number with \(\alpha^k = 2\alpha^{k-1} + \sum_{i=0}^{k-2} \alpha^i\). Write \(g_k(z) = (z - 1) / ((k + 1) z^2 - 3kz + k - 1)\). Then there is a real number \(\xi\) with \(|\xi| < 1.25 / \varphi^{k/2}\) such that \((2\alpha - 2) \, g_k(\alpha) \, \alpha^n = \frac{2\varphi^{2n+1}}{\varphi + 2} (1 + \xi)\).
public theorem_wanted kPellLucas_dominantRoot_main_term (k n : ℕ) (hk : 50 ≤ k)
(hnk : (n : ℝ) < goldenRatio ^ ((k : ℝ) / 2)) (α : ℝ) (hα : 0 < α)
(hroot : α ^ k = 2 * α ^ (k - 1) + ∑ i ∈ Finset.range (k - 1), α ^ i) :
∃ ξ : ℝ, (2 * α - 2) * ((α - 1) / ((k + 1) * α ^ 2 - 3 * k * α + k - 1)) * α ^ n =
2 * goldenRatio ^ (2 * n + 1) / (goldenRatio + 2) * (1 + ξ) ∧
|ξ| < 1.25 / goldenRatio ^ ((k : ℝ) / 2)
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 3.
TheoremContinued-fraction lower bound for rational approximations#●ready to prove
Let \(\tau\) be an irrational real number with simple continued fraction expansion \([a_0; a_1, a_2, \ldots]\), so that \(a_0 = \lfloor \tau \rfloor\), and let \(q_0, q_1, \ldots\) be the denominators of its convergents. Let \(M > 0\) be a real number, let \(N\) be the least positive integer with \(q_N > M\), and put \(a(M) = \max \{a_k : 0 \le k \le N\}\). Then
for all integers \(x\) and \(y\) with \(0 < x < M\).
public theorem_wanted lt_abs_sub_div_of_max_partialQuotient (τ : ℝ) (hτ : Irrational τ) (M : ℝ)
(hM : 0 < M) (N : ℕ) (hN : 0 < N) (hqN : M < (GenContFract.of τ).dens N)
(hNmin : ∀ j, 0 < j → j < N → (GenContFract.of τ).dens j ≤ M) (a : ℕ → ℝ)
(ha₀ : a 0 = (GenContFract.of τ).h)
(ha : ∀ j, (GenContFract.of τ).partDens.get? j = some (a (j + 1))) (x y : ℤ) (hx : 0 < x)
(hxM : (x : ℝ) < M) :
1 / (((Finset.range (N + 1)).sup' Finset.nonempty_range_add_one a + 2) * (x : ℝ) ^ 2) <
|τ - y / x|
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 5.
TheoremLinear bounds for the logarithm and the exponential near zero (Lemma 6)#●ready to prove
Let \(a\) and \(x\) be real numbers with \(0 < a < 1\) and \(0 < |x| < a\). Then \(|\log(1 + x)| < \frac{-\log(1 - a)}{a} |x|\) and \(|x| < \frac{a}{1 - e^{-a}} |e^x - 1|\).
The case \(x = 0\), where both strict inequalities read \(0 < 0\), is excluded.
public theorem_wanted abs_log_one_add_lt_and_abs_lt_exp_sub_one (a x : ℝ) (ha₀ : 0 < a)
(ha₁ : a < 1) (hx : |x| < a) (hx₀ : x ≠ 0) :
|Real.log (1 + x)| < -Real.log (1 - a) / a * |x| ∧
|x| < a / (1 - Real.exp (-a)) * |Real.exp x - 1|
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 6.
TheoremLemma 7#●ready to state
If ℓ ≥ 1, T > (4ℓ²)^ℓ and T > x / (log x)^ℓ, then
x < 2^ℓ T (log T)^ℓ; stated for x > 1, where (log x)^ℓ is a real power of a positive
number.
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 7.
TheoremExponent bounds for \(k\)-Pell–Lucas numbers close to a power of two (Lemma 8)#●ready to prove
Let \(k\), \(n\) and \(m\) be natural numbers with \(k \ge 2\), \(n \ge 1\), \(m \ge 2\) and \(n \ge k + 1\), and let \(Q^{(k)}_n\) be the \(n\)th \(k\)-Pell–Lucas number. If \(|Q^{(k)}_n - 2^m| < 2^{m/2}\), then \(0.69n - 1.69 < m < 1.39n + 3.78\).
public theorem_wanted kPellLucas_close_two_pow_exponent_bounds (k n m : ℕ) (hk : 2 ≤ k)
(hn : 1 ≤ n) (hm : 2 ≤ m) (hkn : k + 1 ≤ n)
(hclose : |(kPellLucas k n : ℝ) - 2 ^ m| < (2 : ℝ) ^ ((m : ℝ) / 2)) :
(0.69 : ℝ) * n - 1.69 < m ∧ (m : ℝ) < 1.39 * n + 3.78
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 8.
Uses 1
TheoremAbsolute bounds for \(k\)-Pell–Lucas numbers close to a power of two (Lemma 9)#●ready to prove
Let \(k\), \(n\) and \(m\) be natural numbers with \(k \ge 2\), \(m \ge 1\) and \(n \ge k + 1\), and let \(Q^{(k)}_n\) be the \(n\)th \(k\)-Pell–Lucas number. If \(|Q^{(k)}_n - 2^m| < 2^{m/2}\), then \(n < 1.7 \cdot 10^{15} \, k^4 (\log k)^3\) and \(m < 2.37 \cdot 10^{15} \, k^4 (\log k)^3\).
public theorem_wanted kPellLucas_close_two_pow_lt_bounds (k n m : ℕ) (hk : 2 ≤ k) (hm : 1 ≤ m)
(hkn : k + 1 ≤ n) (hclose : |(kPellLucas k n : ℝ) - 2 ^ m| < (2 : ℝ) ^ ((m : ℝ) / 2)) :
(n : ℝ) < 1.7e15 * k ^ 4 * Real.log k ^ 3 ∧ (m : ℝ) < 2.37e15 * k ^ 4 * Real.log k ^ 3
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 9.
Uses 1
TheoremNo \(k\)-Pell–Lucas number with \(k > 350\) and index \(n \ge k + 1\) is close to a power of two (Lemma 10)#●ready to prove
No \(k\)-Pell–Lucas number with \(k > 350\) and index \(n \ge k + 1\) is close to a power of two (Lemma 10). For all natural numbers \(k\), \(n\) and \(m\) with \(k > 350\) and \(n \ge k + 1\), the \(n\)th \(k\)-Pell–Lucas number \(Q^{(k)}_n\) satisfies \(|Q^{(k)}_n - 2^m| \ge 2^{m/2}\).
public theorem_wanted kPellLucas_not_close_two_pow_of_large_order (k n m : ℕ) (hk : 350 < k)
(hkn : k + 1 ≤ n) : ¬ |(kPellLucas k n : ℝ) - 2 ^ m| < (2 : ℝ) ^ ((m : ℝ) / 2)
def kPellLucas (k : ℕ) : ℕ → ℕ
| 0 => 2
| 1 => 2
| n + 2 =>
2 * kPellLucas k (n + 1) + ∑ j ∈ Finset.range (min (k - 1) (n + 1)), kPellLucas k (n - j)
decreasing_by all_goals omega
WantedExt/NumberTheory/KPellLucasCloseToPowerOfTwoWanted.lean:43
Sources
- Mohamadou Bachabi, Bakary Kourouma, and Alain Togbé, On k-Pell-Lucas Numbers Close to a Power of 2, INTEGERS 25 (2025), Article A67, Lemma 10.
Uses 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.