k-generalized Fibonacci numbers
DefinitionOctanacci window#✓fully proved
The octanacci window is the sequence \((w_n)_{n \ge 0}\) of \(8\)-tuples of natural numbers with \(w_0 = (1, 1, 2, 4, 8, 16, 32, 64)\) and, if \(w_n = (a_1, \dots, a_8)\), then \(w_{n+1} = (a_2, \dots, a_8, a_1 + a_2 + \dots + a_8)\). The octanacci numbers \(f_n\) are the first entries of these tuples, so \(w_n = (f_n, f_{n+1}, \dots, f_{n+7})\).
def octanacciWindow : Nat → Nat × Nat × Nat × Nat × Nat × Nat × Nat × Nat
| 0 => (1, 1, 2, 4, 8, 16, 32, 64)
| n + 1 =>
match octanacciWindow n with
| (a, b, c, d, e, f, g, h) =>
(b, c, d, e, f, g, h, a + b + c + d + e + f + g + h)
Used by 1
DefinitionOctanacci numbers#✓fully proved
The octanacci sequence \((f_n)_{n \ge 0}\) of natural numbers is defined by \(f_0 = f_1 = 1\), \(f_n = 2^{n-1}\) for \(2 \le n \le 7\), and \(f_n = f_{n-1} + f_{n-2} + \dots + f_{n-8}\) for \(n \ge 8\). It begins \(1, 1, 2, 4, 8, 16, 32, 64, 128, 255, \dots\), and its generating function is \(1/(1 - t - t^2 - \dots - t^8)\).
def octanacciNumber (n : Nat) : Nat :=
(octanacciWindow n).1
def octanacciWindow : Nat → Nat × Nat × Nat × Nat × Nat × Nat × Nat × Nat
| 0 => (1, 1, 2, 4, 8, 16, 32, 64)
| n + 1 =>
match octanacciWindow n with
| (a, b, c, d, e, f, g, h) =>
(b, c, d, e, f, g, h, a + b + c + d + e + f + g + h)
MathlibExt/Combinatorics/Enumerative/OctanacciNumber.lean:28
Uses 1
DefinitionN-step Fibonacci numbers#✓fully proved
For a natural number \(N\), the \(N\)-step Fibonacci numbers \(F^{(N)}_n\) (\(n \ge 0\)), in the convention of Noe and Post, are defined by \(F^{(N)}_0 = 0\), \(F^{(N)}_1 = 1\) and, for \(n \ge 2\), \(F^{(N)}_n = \sum_{i=1}^{N} F^{(N)}_{n-i}\), where a term whose index \(n - i\) is negative counts as \(0\). In particular \(F^{(0)}_n = 0\) for \(n \ge 2\).
def nStepFibonacci (N : ℕ) : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => ∑ i : Fin N, nStepFibonacci N (n + 1 - i)
decreasing_by omega
Sources
- Bowman, Compositions with an Odd Number of Parts, and Other Congruences, Journal of Integer Sequences 27 (2024), Article 24.3.6, Section 4.4.
TheoremRecurrence for the N-step Fibonacci numbers#✓fully proved
For all natural numbers \(N\) and \(n\), the \(N\)-step Fibonacci numbers \(F^{(N)}\) satisfy \(F^{(N)}_{n+2} = \sum_{i=0}^{N-1} F^{(N)}_{\max(n+1-i,\,0)}\).
theorem nStepFibonacci_add_two (N n : ℕ) :
nStepFibonacci N (n + 2) = ∑ i : Fin N, nStepFibonacci N (n + 1 - i)
def nStepFibonacci (N : ℕ) : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => ∑ i : Fin N, nStepFibonacci N (n + 1 - i)
decreasing_by omega
MathlibExt/NumberTheory/NStepFibonacciSequence.lean:31
Sources
- Bowman, Compositions with an Odd Number of Parts, and Other Congruences, Journal of Integer Sequences 27 (2024), Article 24.3.6, Section 4.4.
Uses 1
TheoremZeroth N-step Fibonacci number#✓fully proved
For every natural number \(N\), the \(N\)-step Fibonacci number \(F^{(N)}_0\) equals \(0\).
@[simp] theorem nStepFibonacci_zero (N : ℕ) : nStepFibonacci N 0 = 0
def nStepFibonacci (N : ℕ) : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => ∑ i : Fin N, nStepFibonacci N (n + 1 - i)
decreasing_by omega
MathlibExt/NumberTheory/NStepFibonacciSequence.lean:31
Sources
- Bowman, Compositions with an Odd Number of Parts, and Other Congruences, Journal of Integer Sequences 27 (2024), Article 24.3.6, Section 4.4.
Uses 1 · Used by 1
TheoremFirst N-step Fibonacci number#✓fully proved
For every natural number \(N\), the \(N\)-step Fibonacci number \(F^{(N)}_1\) equals \(1\).
@[simp] theorem nStepFibonacci_one (N : ℕ) : nStepFibonacci N 1 = 1
def nStepFibonacci (N : ℕ) : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => ∑ i : Fin N, nStepFibonacci N (n + 1 - i)
decreasing_by omega
MathlibExt/NumberTheory/NStepFibonacciSequence.lean:31
Sources
- Bowman, Compositions with an Odd Number of Parts, and Other Congruences, Journal of Integer Sequences 27 (2024), Article 24.3.6, Section 4.4.
Uses 1 · Used by 1
TheoremThe tribonacci number with index 5#✓fully proved
The \(3\)-step Fibonacci number \(F^{(3)}_5\) equals \(7\).
The tribonacci numbers \(F^{(3)}_0, \dots, F^{(3)}_5\) are \(0, 1, 1, 2, 4, 7\).
theorem nStepFibonacci_three_five : nStepFibonacci 3 5 = 7
def nStepFibonacci (N : ℕ) : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => ∑ i : Fin N, nStepFibonacci N (n + 1 - i)
decreasing_by omega
MathlibExt/NumberTheory/NStepFibonacciSequence.lean:31
Sources
- Bowman, Compositions with an Odd Number of Parts, and Other Congruences, Journal of Integer Sequences 27 (2024), Article 24.3.6, Section 4.4.
Uses 3
TheoremBounds on the dominant root of the k-generalized Fibonacci polynomial#✓fully proved
Let \(k\) be a natural number and let \(\alpha > 1\) be a real number with \(\alpha^k = \sum_{i=0}^{k-1} \alpha^i\). Then \(2 - 1/k < \alpha < 2\), and if \(k \ge 4\), moreover \(2 - 1/(3k) < \alpha < 2\).
theorem dominant_root_bounds_k_generalized_fibonacci
(k : ℕ)
(α : ℝ)
(hα : 1 < α)
(hroot : α ^ k = ∑ i ∈ Finset.range k, α ^ i) :
(2 - 1 / (k : ℝ) < α ∧ α < 2) ∧
(4 ≤ k → 2 - 1 / (3 * (k : ℝ)) < α ∧ α < 2)
Sources
- G. P. B. Dresden and Z. Du, A Simplified Binet Formula for k-Generalized Fibonacci Numbers, Journal of Integer Sequences 17 (2014), Article 14.4.7, Lemma
La, line 350, https://cs.uwaterloo.ca/journals/JIS/VOL17/Dresden/dresden6.tex.
TheoremSimplified Binet formula for k-generalized Fibonacci numbers from an initial window#✓fully proved
Let \(k \ge 2\) and let \(F : \mathbb{Z} \to \mathbb{Z}\) satisfy \(F(n) = 0\) for all integers \(n\) with \(2 - k \le n < 1\), \(F(1) = 1\), and \(F(n) = \sum_{i=0}^{k-1} F(n - 1 - i)\) for all integers \(n > 1\). Let \(\alpha\) be a positive real number with \(\alpha^k = \sum_{i=0}^{k-1} \alpha^i\), and put \(c = (\alpha - 1)/(2 + (k + 1)(\alpha - 2))\). Then for every integer \(n \ge 2 - k\), \(F(n) = \lfloor c\,\alpha^{n-1} + 1/2 \rfloor\).
Proof: We follow Dresden–Du's recurrence and first-crossing route, replacing their appeal to the non-dominant-root results of Miles (1960) and Miller (1971) with an exact positive weighted invariant.
public theorem dresden_du_simplified_binet_of_initial_window :
∀ (k : ℕ) (_hk : 2 ≤ k) (F : ℤ → ℤ)
(_hFzero : ∀ n : ℤ, 2 - (k : ℤ) ≤ n → n < 1 → F n = 0)
(_hFone : F 1 = 1)
(_hFrec : ∀ n : ℤ, 1 < n → F n = ∑ i ∈ Finset.range k, F (n - 1 - (i : ℤ))) (α : ℝ)
(_hαpos : 0 < α) (_hαroot : α ^ k = ∑ i ∈ Finset.range k, α ^ i),
∀ n : ℤ, 2 - (k : ℤ) ≤ n →
F n = ⌊((α - 1) / (2 + ((k : ℝ) + 1) * (α - 2))) * α ^ (n - 1) + 1 / 2⌋
Sources
- G. P. B. Dresden and Z. Du, A Simplified Binet Formula for k-Generalized Fibonacci Numbers, Journal of Integer Sequences 17 (2014), Article 14.4.7, Theorem T2, lines 209-218, https://cs.uwaterloo.ca/journals/JIS/VOL17/Dresden/dresden6.tex.
Used by 1
TheoremDresden–Du simplified Binet formula#✓fully proved
Let \(k \ge 2\) and let \(F : \mathbb{Z} \to \mathbb{Z}\) satisfy \(F(n) = 0\) for all integers \(n < 1\), \(F(1) = 1\), and \(F(n) = \sum_{i=0}^{k-1} F(n - 1 - i)\) for all integers \(n > 1\). Let \(\alpha\) be a positive real number with \(\alpha^k = \sum_{i=0}^{k-1} \alpha^i\), and suppose that every positive real \(\beta\) with \(\beta^k = \sum_{i=0}^{k-1} \beta^i\) equals \(\alpha\). Put \(c = (\alpha - 1)/(2 + (k + 1)(\alpha - 2))\). Then for every integer \(n \ge 2 - k\), \(F(n) = \lfloor c\,\alpha^{n-1} + 1/2 \rfloor\).
public theorem dresden_du_simplified_binet :
∀ (k : ℕ) (_hk : 2 ≤ k) (F : ℤ → ℤ) (_hFneg : ∀ n : ℤ, n < 1 → F n = 0)
(_hFone : F 1 = 1)
(_hFrec : ∀ n : ℤ, 1 < n → F n = ∑ i ∈ Finset.range k, F (n - 1 - (i : ℤ))) (α : ℝ)
(_hαpos : 0 < α) (_hαroot : α ^ k = ∑ i ∈ Finset.range k, α ^ i)
(_hαuniq : ∀ β : ℝ, 0 < β → β ^ k = ∑ i ∈ Finset.range k, β ^ i → β = α),
∀ n : ℤ, 2 - (k : ℤ) ≤ n →
F n = ⌊((α - 1) / (2 + ((k : ℝ) + 1) * (α - 2))) * α ^ (n - 1) + 1 / 2⌋
Sources
- G. P. B. Dresden and Z. Du, A Simplified Binet Formula for k-Generalized Fibonacci Numbers, Journal of Integer Sequences 17 (2014), Article 14.4.7, Theorem T2, lines 209-218, https://cs.uwaterloo.ca/journals/JIS/VOL17/Dresden/dresden6.tex.
TheoremPower-weighted convolution of Fibonacci \(m\)-step numbers#✓fully proved
Let \(m \ge 1\) and let \(F \colon \mathbb{N} \to \mathbb{N}\) satisfy \(F(0) = 0\), \(F(1) = 1\) and \(F(k) = \sum_{j=1}^{m} F(k - j)\) for every \(k \ge 2\), where a term \(F(k - j)\) with \(j > k\) is read as \(F(0) = 0\). Then for every natural number \(n\),
where the subtraction on the right is taken in \(\mathbb{N}\) (truncated at \(0\)).
The initial conditions are those of the paper's definition of Fibonacci \(m\)-step numbers (lines 126–133), whose values at negative indices are \(0\). The paper states the theorem for \(m \ge 3\); the cases \(m = 1\) and \(m = 2\) also hold, so the hypothesis here is \(m \ge 1\).
theorem two_pow_convolution_mstep_fibonacci (F : ℕ → ℕ) (m n : ℕ)
(hm : 1 ≤ m) (h0 : F 0 = 0) (h1 : F 1 = 1)
(hrec : ∀ k : ℕ, 2 ≤ k → F k = ∑ j ∈ Finset.range m, F (k - (j + 1))) :
(∑ j ∈ Finset.range (n + 1), 2 ^ j * F (n - j)) =
2 ^ (n + m - 1) - F (n + 1 + m)
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci m-Step Numbers," Journal of Integer Sequences 27 (2024), Article 24.8.8, Theorem, lines 453–459, https://cs.uwaterloo.ca/journals/JIS/VOL27/Gryszka/gryszka12.tex
TheoremBinet asymptotics for weighted generalized Fibonacci sequences, positive-root form#✓fully proved
Let \(r \ge 2\), let \(A_1, \dots, A_r\) and \(c_1, \dots, c_r\) be nonnegative real numbers with \(A_r > 0\) and \(c_j > 0\) for some \(j\), and suppose that the indices \(j\) with \(A_j > 0\) have greatest common divisor \(1\). Let \(a_0, a_1, a_2, \dots\) be the real sequence with \(a_n = c_{n+1}\) for \(0 \le n < r\) and \(a_n = \sum_{j=1}^{r} A_j a_{n-j}\) for \(n \ge r\), and let \(p(x) = x^r - \sum_{j=1}^{r} A_j x^{r-j}\) be its characteristic polynomial. Let \(\lambda > 0\) be a root of \(p\). Then there is a constant \(C > 0\) such that \(a_n = C \lambda^n + o(\lambda^n)\) as \(n \to \infty\), and \(a_{n+1} / a_n \to \lambda\).
MetaMathlibExt.binet_general · 22 lines
theorem binet_general
(r : ℕ) (hr : 2 ≤ r)
(A c : Fin r → ℝ)
(hA : ∀ k, 0 ≤ A k)
(hc : ∀ k, 0 ≤ c k)
(hAr : ∃ i : Fin r, i.val + 1 = r ∧ 0 < A i)
(hcpos : ∃ k₀, 0 < c k₀)
(hgcd : ∀ d : ℕ, (∀ k : Fin r, 0 < A k → d ∣ k.val + 1) → d = 1)
(a : ℕ → ℝ)
(ha_init : ∀ n (h : n < r), a n = c ⟨n, h⟩)
(ha_rec : ∀ n, r ≤ n → a n = Finset.sum Finset.univ (fun k : Fin r => A k * a (n - 1 - k.val)))
(p : Polynomial ℝ)
(hp : p = Polynomial.X ^ r -
Finset.sum Finset.univ (fun k : Fin r =>
Polynomial.C (A k) * Polynomial.X ^ (r - 1 - k.val)))
(lam : ℝ)
(hlam_pos : 0 < lam)
(hlam_root : p.IsRoot lam) :
∃ C : ℝ, 0 < C ∧
Asymptotics.IsLittleO Filter.atTop (fun n => a n - C * lam ^ n)
(fun n => lam ^ n) ∧
Filter.Tendsto (fun n => a (n + 1) / a n) Filter.atTop (nhds lam)
Used by 1
TheoremBinet asymptotics for weighted generalized Fibonacci sequences#✓fully proved
Let \(r \ge 2\), let \(A_1, \dots, A_r\) and \(c_1, \dots, c_r\) be nonnegative real numbers with \(A_r > 0\) and \(c_j > 0\) for some \(j\), and suppose that the indices \(j\) with \(A_j > 0\) have greatest common divisor \(1\). Let \(a_0, a_1, a_2, \dots\) be the real sequence with \(a_n = c_{n+1}\) for \(0 \le n < r\) and \(a_n = \sum_{j=1}^{r} A_j a_{n-j}\) for \(n \ge r\), and let \(p(x) = x^r - \sum_{j=1}^{r} A_j x^{r-j}\) be its characteristic polynomial. Let \(\lambda > 0\) be a root of \(p\) that is not a root of the derivative \(p'\), and such that every complex root \(z\) of \(p\) satisfies \(|z| \le \lambda\), with \(|z| = \lambda\) only for \(z = \lambda\). Then there is a constant \(C > 0\) such that \(a_n = C \lambda^n + o(\lambda^n)\) as \(n \to \infty\), and \(a_{n+1} / a_n \to \lambda\).
The source indexes the sequence from \(1\); the \(a_n\) here is the source's \(a_{n+1}\), and \(A_j\), \(c_j\) are the source's weights and initial values.
MetaMathlibExt.binet · 24 lines
theorem binet
(r : ℕ) (hr : 2 ≤ r)
(A c : Fin r → ℝ)
(hA : ∀ k, 0 ≤ A k)
(hc : ∀ k, 0 ≤ c k)
(hAr : ∃ i : Fin r, i.val + 1 = r ∧ 0 < A i)
(hcpos : ∃ k₀, 0 < c k₀)
(hgcd : ∀ d : ℕ, (∀ k : Fin r, 0 < A k → d ∣ k.val + 1) → d = 1)
(a : ℕ → ℝ)
(ha_init : ∀ n (h : n < r), a n = c ⟨n, h⟩)
(ha_rec : ∀ n, r ≤ n → a n = Finset.sum Finset.univ (fun k : Fin r => A k * a (n - 1 - k.val)))
(p : Polynomial ℝ)
(hp : p = Polynomial.X ^ r -
Finset.sum Finset.univ (fun k : Fin r =>
Polynomial.C (A k) * Polynomial.X ^ (r - 1 - k.val)))
(lam : ℝ)
(hlam_pos : 0 < lam)
(hlam_root : p.IsRoot lam)
(hlam_simple : ¬ p.derivative.IsRoot lam)
(hlam_dom : ∀ z : ℂ, (p.map Complex.ofRealHom).IsRoot z → ‖z‖ ≤ lam ∧ (‖z‖ = lam → z = ↑lam)) :
∃ C : ℝ, 0 < C ∧
Asymptotics.IsLittleO Filter.atTop (fun n => a n - C * lam ^ n)
(fun n => lam ^ n) ∧
Filter.Tendsto (fun n => a (n + 1) / a n) Filter.atTop (nhds lam)
Sources
- Passawan Noppakaew and Thanakorn Prinyasart, "Complete Sequences of Weighted r-Generalized Fibonacci Powers," Journal of Integer Sequences 24 (2021), Article 21.5.4, Proposition, lines 119–126, https://cs.uwaterloo.ca/journals/JIS/VOL24/Prinyasart/prin3.tex. It follows from
binet_general; the hypotheseshlam_simpleandhlam_domare unused and keep the source's shape.
DefinitionInitial segments of the Fibonacci \(m\)-step sequence#✓fully proved
For natural numbers \(m\) and \(n\), this is the list of integers \([F_0, F_1, \dots, F_n]\), built recursively: the list for \(n = 0\) is \([0]\), the list for \(n = 1\) is \([0, 1]\), and for \(n \ge 2\) the list for \(n\) is the list for \(n - 1\) followed by \(F_n = \sum_{j=1}^{m} F_{n-j}\), where \(F_i = 0\) for \(i < 0\).
def fibStepSeq (m : ℕ) : ℕ → List ℤ
| 0 => [0]
| 1 => [0, 1]
| n + 2 =>
let prev := fibStepSeq m (n + 1)
prev ++ [∑ j ∈ Finset.Icc 1 m, prev.getD (n + 2 - j) 0]
Used by 1
DefinitionFibonacci \(m\)-step numbers#✓fully proved
For natural numbers \(m\) and \(n\), the integer \(F^{(m)}_n\) is defined by \(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\) and \(F^{(m)}_n = \sum_{j=1}^{m} F^{(m)}_{n-j}\) for \(n \ge 2\), where \(F^{(m)}_i = 0\) for \(i < 0\).
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
def fibStepSeq (m : ℕ) : ℕ → List ℤ
| 0 => [0]
| 1 => [0, 1]
| n + 2 =>
let prev := fibStepSeq m (n + 1)
prev ++ [∑ j ∈ Finset.Icc 1 m, prev.getD (n + 2 - j) 0]
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:54
Uses 1 · Used by 40
DefinitionJacobsthal numbers#✓fully proved
The Jacobsthal numbers are the integers \(J_n\) defined by \(J_0 = 0\), \(J_1 = 1\) and \(J_{n+2} = J_{n+1} + 2 J_n\) for all \(n \ge 0\).
def jacobsthalSeq : ℕ → ℤ
| 0 => 0
| 1 => 1
| n + 2 => jacobsthalSeq (n + 1) + 2 * jacobsthalSeq n
DefinitionGenerating function of the Fibonacci \(m\)-step numbers#✓fully proved
For a natural number \(m\), \(F^{(m)}(X)\) is the formal power series \(\sum_{n \ge 0} F^{(m)}_n X^n\) with rational coefficients, where \(F^{(m)}_n\) is the \(n\)-th Fibonacci \(m\)-step number.
noncomputable def fibStepGF (m : ℕ) : PowerSeries ℚ :=
PowerSeries.mk fun n => (fibStep m n : ℚ)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Uses 1 · Used by 4
DefinitionSums over compositions#✓fully proved
Given integer sequences \(a_0, \dots, a_{r-1}\) and a natural number \(n\), the sum over the compositions \(K(r, n)\) of \(n\) into \(r\) nonnegative parts is the sum, over all \((k_0, \dots, k_{r-1}) \in \mathbb{N}^r\) with \(k_0 + \dots + k_{r-1} = n\), of \(\prod_{i=0}^{r-1} a_i(k_i)\).
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
Used by 13
TheoremTruncated convolution of the \(m\)-step and \((m+1)\)-step Fibonacci numbers#●ready to prove
Write \(F^{(m)}_n\) for the Fibonacci \(m\)-step numbers (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For all natural numbers \(m \ge 1\) and \(n \ge m\),
theorem_wanted sum_fibStep_mul_succ (m n : ℕ) (hm : 1 ≤ m)
(hn : m ≤ n) :
∑ j ∈ Finset.range (n - m + 1),
fibStep m j * fibStep (m + 1) (n - m - j) =
fibStep (m + 1) n - fibStep m n
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 1.
Uses 1
TheoremConvolution of the Fibonacci and tribonacci numbers#●ready to prove
Write \(F_n\) and \(T_n\) for the Fibonacci and tribonacci numbers, that is, the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) for \(m = 2, 3\) (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For every natural number \(n\),
theorem_wanted sum_fib_mul_trib (n : ℕ) :
∑ j ∈ Finset.range (n + 1), fibStep 2 j * fibStep 3 (n - j) =
fibStep 3 (n + 2) - fibStep 2 (n + 2)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 2.
Uses 1
TheoremConvolution of the Fibonacci 3-step and 4-step numbers#●ready to prove
Let \(T_j\) and \(Q_j\) be the Fibonacci \(3\)-step and \(4\)-step numbers, where the Fibonacci \(k\)-step numbers start \(0, 1\) and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For every natural number \(n\),
theorem_wanted sum_trib_mul_tetra (n : ℕ) :
∑ j ∈ Finset.range (n + 1), fibStep 3 j * fibStep 4 (n - j) =
fibStep 4 (n + 3) - fibStep 3 (n + 3)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 2.
Uses 1
TheoremConvolution of the Fibonacci 4-step and 5-step numbers#●ready to prove
Let \(Q_j\) and \(P_j\) be the Fibonacci \(4\)-step and \(5\)-step numbers, where the Fibonacci \(k\)-step numbers start \(0, 1\) and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For every natural number \(n\),
theorem_wanted sum_tetra_mul_penta (n : ℕ) :
∑ j ∈ Finset.range (n + 1), fibStep 4 j * fibStep 5 (n - j) =
fibStep 5 (n + 4) - fibStep 4 (n + 4)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 2.
Uses 1
TheoremIterated convolution of Fibonacci \(m\)-step and \((m+p)\)-step numbers#●ready to prove
Let \(F^{(k)}_j\) be the \(j\)-th Fibonacci \(k\)-step number: the sequence starts \(F^{(k)}_0 = 0\), \(F^{(k)}_1 = 1\), and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For all natural numbers \(m\), \(p\) and \(n\) with \(m \ge 1\) and \(n \ge m\),
where an inner sum whose upper limit \(n - m - k\) is negative counts as \(0\).
theorem_wanted sum_sum_fibStep_mul (m p n : ℕ) (hm : 1 ≤ m)
(hn : m ≤ n) :
∑ k ∈ Finset.range p, ∑ j ∈ Finset.range (n - m - k + 1),
fibStep m j * fibStep (m + p) (n - m - k - j) =
fibStep (m + p) n - fibStep m n
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 3.
Uses 1
TheoremConvolution of the \(m\)-step Fibonacci numbers with consecutive sums of the \((m+2)\)-step ones#●ready to prove
Convolution of the \(m\)-step Fibonacci numbers with consecutive sums of the \((m+2)\)-step ones. Write \(F^{(m)}_n\) for the Fibonacci \(m\)-step numbers (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For all natural numbers \(m \ge 1\) and \(n \ge m\),
theorem_wanted sum_fibStep_mul_add (m n : ℕ) (hm : 1 ≤ m)
(hn : m ≤ n) :
∑ j ∈ Finset.range (n - m), fibStep m j *
(fibStep (m + 2) (n - m - j) +
fibStep (m + 2) (n - m - j - 1)) =
fibStep (m + 2) n - fibStep m n
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 4.
Uses 1
TheoremDouble partial sums of Fibonacci step numbers#●ready to prove
For natural numbers \(p\) and \(n\) with \(1 \le p \le n\), the Fibonacci \((p+1)\)-step numbers \(F^{(p+1)}_j\) satisfy
where an inner sum whose upper limit is \(-1\) is empty.
theorem_wanted fibStep_sub_one_eq_sum_sum (p n : ℕ)
(hp : 1 ≤ p) (hn : p ≤ n) :
fibStep (p + 1) n - 1 =
∑ k ∈ Finset.range p, ∑ j ∈ Finset.range (n - 1 - k),
fibStep (p + 1) j
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 7.
Uses 1
TheoremPartial sums of the Fibonacci \(m\)-step numbers#●ready to prove
For natural numbers \(m \ge 2\) and \(n\), the Fibonacci \(m\)-step numbers \(F^{(m)}_k\) satisfy
The source prints this identity divided by \(m - 1\) and with coefficients \(k\) in place of \(m-1-k\); its proof gives \(m-1-k\), and the printed form already fails at \(m = 4\), \(n = 1\), where it gives \(2/3\) instead of \(1\).
theorem_wanted mul_sum_fibStep (m n : ℕ) (hm : 2 ≤ m) :
((m : ℤ) - 1) * ∑ k ∈ Finset.range (n + 1), fibStep m k =
fibStep m (n + m) -
∑ k ∈ Finset.Icc 1 (m - 2),
((m - 1 - k : ℕ) : ℤ) * fibStep m (n + k) - 1
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 8.
Uses 1
TheoremConvolution of the Fibonacci and tetranacci numbers#●ready to prove
Write \(F_n\) and \(Q_n\) for the Fibonacci and tetranacci numbers, that is, the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) for \(m = 2, 4\) (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For every natural number \(n\),
where for \(n = 0\) the term \(Q_{n-1}\) is \(Q_0 = 0\).
theorem_wanted sum_fib_mul_tetra (n : ℕ) :
∑ j ∈ Finset.range (n + 1), fibStep 2 j * fibStep 4 (n - j) =
fibStep 4 (n + 1) + fibStep 4 (n - 1) - fibStep 2 (n + 1)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollaries 9 and 16.
Uses 1
TheoremConvolution of the Fibonacci and pentanacci numbers#●ready to prove
Write \(F_n\) for the Fibonacci numbers and \(P_n\) for the pentanacci numbers (the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) with \(m = 2\) and \(m = 5\)). For every integer \(n \ge 0\), \(2 \sum_{j=0}^{n} F_j P_{n-j} = P_{n+2} + P_{n-1} - F_{n+2}\), where \(P_{n-1}\) is read as \(P_0 = 0\) when \(n = 0\).
The source prints this identity with a factor \(1/2\); it is stated here multiplied by \(2\).
theorem_wanted two_mul_sum_fib_mul_penta (n : ℕ) :
2 * ∑ j ∈ Finset.range (n + 1),
fibStep 2 j * fibStep 5 (n - j) =
fibStep 5 (n + 2) + fibStep 5 (n - 1) - fibStep 2 (n + 2)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 9.
Uses 1
TheoremConvolution of the pentanacci and tribonacci numbers#●ready to prove
Write \(P_n\) for the pentanacci numbers and \(T_n\) for the tribonacci numbers (the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) with \(m = 5\) and \(m = 3\)). For every integer \(n \ge 0\), \(2 \sum_{j=0}^{n} P_j T_{n-j} = P_{n+3} + P_{n+1} + P_{n-1} - T_{n+3} - T_{n+1}\), where \(P_{n-1}\) is read as \(P_0 = 0\) when \(n = 0\).
The source prints this identity with a factor \(1/2\); it is stated here multiplied by \(2\).
theorem_wanted two_mul_sum_penta_mul_trib (n : ℕ) :
2 * ∑ j ∈ Finset.range (n + 1),
fibStep 5 j * fibStep 3 (n - j) =
fibStep 5 (n + 3) + fibStep 5 (n + 1) + fibStep 5 (n - 1) -
fibStep 3 (n + 3) - fibStep 3 (n + 1)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 9.
Uses 1
TheoremExchange identity for convolutions of \((m-2)\)-, \((m-1)\)- and \(m\)-step Fibonacci numbers#●ready to prove
Write \(F^{(m)}_n\) for the Fibonacci \(m\)-step numbers (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For all natural numbers \(m \ge 3\) and \(n \ge 1\),
theorem_wanted sum_fibStep_sub_eq (m n : ℕ) (hm : 3 ≤ m)
(hn : 1 ≤ n) :
∑ j ∈ Finset.range (n + 1), fibStep (m - 2) j *
(fibStep m (n - j) - fibStep (m - 1) (n - j)) =
∑ j ∈ Finset.range n, fibStep m j *
(fibStep (m - 1) (n - 1 - j) - fibStep (m - 2) (n - 1 - j))
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 10.
Uses 1
TheoremDifference of the Fibonacci 3-step and 2-step numbers as a convolution#●ready to prove
Let \(F_j\) and \(T_j\) be the Fibonacci \(2\)-step and \(3\)-step numbers, where the Fibonacci \(k\)-step numbers start \(0, 1\) and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For every natural number \(n \ge 1\),
theorem_wanted trib_sub_fib_eq_sum (n : ℕ) (hn : 1 ≤ n) :
fibStep 3 (n + 1) - fibStep 2 (n + 1) =
∑ j ∈ Finset.range n, fibStep 3 j * fibStep 2 (n - 1 - j)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 11.
Uses 1
TheoremConvolution of the Fibonacci numbers with tribonacci minus tetranacci#●ready to prove
Write \(F_n\), \(T_n\) and \(Q_n\) for the Fibonacci, tribonacci and tetranacci numbers, that is, the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) for \(m = 2, 3, 4\) (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For every natural number \(n \ge 1\),
theorem_wanted sum_fib_mul_sub_eq (n : ℕ) (hn : 1 ≤ n) :
∑ j ∈ Finset.range (n + 1), fibStep 2 j *
(fibStep 3 (n - j) - fibStep 4 (n - j)) =
∑ j ∈ Finset.range n,
(fibStep 2 j - fibStep 3 j) * fibStep 4 (n - 1 - j)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 11.
Uses 1
TheoremConvolution of the Fibonacci 3-step numbers with differences of 4- and 5-step numbers#●ready to prove
Let \(T_j\), \(Q_j\) and \(P_j\) be the Fibonacci \(3\)-, \(4\)- and \(5\)-step numbers, where the Fibonacci \(k\)-step numbers start \(0, 1\) and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For every natural number \(n \ge 1\),
theorem_wanted sum_trib_mul_sub_eq (n : ℕ) (hn : 1 ≤ n) :
∑ j ∈ Finset.range (n + 1), fibStep 3 j *
(fibStep 4 (n - j) - fibStep 5 (n - j)) =
∑ j ∈ Finset.range n,
(fibStep 3 j - fibStep 4 j) * fibStep 5 (n - 1 - j)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 11.
Uses 1
TheoremConvolution of the \((m-1)\)-step and \(m\)-step Fibonacci numbers against powers of two#●ready to prove
Write \(F^{(m)}_n\) for the Fibonacci \(m\)-step numbers (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For all natural numbers \(m \ge 2\) and \(n \ge 2\),
theorem_wanted sum_fibStep_pred_mul (m n : ℕ) (hm : 2 ≤ m)
(hn : 2 ≤ n) :
∑ j ∈ Finset.range (n + 1),
fibStep (m - 1) j * fibStep m (n - j) =
∑ j ∈ Finset.range (n - 1), 2 ^ j *
(fibStep (m - 1) (n - 1 - j) - fibStep m (n - 2 - j))
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 12.
Uses 1
TheoremConvolution of the Fibonacci 3-step and 4-step numbers as a sum weighted by powers of 2#●ready to prove
Let \(T_j\) and \(Q_j\) be the Fibonacci \(3\)-step and \(4\)-step numbers, where the Fibonacci \(k\)-step numbers start \(0, 1\) and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For every natural number \(n\),
This is the case \(m = 4\) of the paper's Theorem 12 with \(n\) replaced by \(n + 2\). The paper prints \(Q_{n-j}\) in place of \(Q_{n+2-j}\) on the left; as printed, the identity fails at \(n = 0\), where the left side is \(0\) and the right side is \(1\).
theorem_wanted sum_trib_mul_tetra_eq (n : ℕ) :
∑ j ∈ Finset.range (n + 3), fibStep 3 j * fibStep 4 (n + 2 - j) =
∑ j ∈ Finset.range (n + 1), 2 ^ j *
(fibStep 3 (n + 1 - j) - fibStep 4 (n - j))
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 13.
Uses 1
TheoremAlternating sum of differences of \(2m\)-step and \((2m-2)\)-step Fibonacci numbers#●ready to prove
Write \(F^{(m)}_n\) for the Fibonacci \(m\)-step numbers (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For all natural numbers \(m \ge 2\) and \(n \ge 2m - 1\),
theorem_wanted sum_neg_one_pow_sub_even (m n : ℕ)
(hm : 2 ≤ m) (hn : 2 * m - 1 ≤ n) :
∑ j ∈ Finset.range n, (-1 : ℤ) ^ j *
(fibStep (2 * m) j - fibStep (2 * m - 2) j) =
(-1 : ℤ) ^ (n + 1) *
∑ j ∈ Finset.range (n - 2 * m + 2),
fibStep (2 * m) j * fibStep (2 * m - 2) (n - 2 * m + 1 - j)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 15.
Uses 1
TheoremAlternating sums of differences of odd-order Fibonacci step numbers#●ready to prove
Let \(F^{(k)}_j\) be the \(j\)-th Fibonacci \(k\)-step number: the sequence starts \(F^{(k)}_0 = 0\), \(F^{(k)}_1 = 1\), and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For all natural numbers \(m\) and \(n\) with \(m \ge 1\) and \(n \ge 2m\),
theorem_wanted sum_neg_one_pow_sub_odd (m n : ℕ)
(hm : 1 ≤ m) (hn : 2 * m ≤ n) :
∑ j ∈ Finset.range n, (-1 : ℤ) ^ (j + 1) *
(fibStep (2 * m + 1) j - fibStep (2 * m - 1) j) =
(-1 : ℤ) ^ n *
∑ j ∈ Finset.range (n - 2 * m + 1),
fibStep (2 * m + 1) j * fibStep (2 * m - 1) (n - 2 * m - j)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 17.
Uses 1
TheoremAlternating sum of the tribonacci numbers#●ready to prove
Write \(T_n\) for the tribonacci numbers (the Fibonacci \(3\)-step numbers \(F^{(3)}_n\)). For every integer \(n \ge 0\), \(2 \sum_{j=0}^{n} (-1)^j T_j = (-1)^n (T_{n+1} - T_{n-1}) - 1\), where \(T_{n-1}\) is read as \(T_0 = 0\) when \(n = 0\).
The source prints this identity with a factor \(1/2\); it is stated here multiplied by \(2\).
theorem_wanted two_mul_sum_neg_one_pow_trib (n : ℕ) :
2 * ∑ j ∈ Finset.range (n + 1),
(-1 : ℤ) ^ j * fibStep 3 j =
(-1 : ℤ) ^ n * (fibStep 3 (n + 1) - fibStep 3 (n - 1)) - 1
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 18.
Uses 1
TheoremConvolution of the pentanacci and tribonacci numbers, second closed form#●ready to prove
Write \(P_n\) for the pentanacci numbers and \(T_n\) for the tribonacci numbers (the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) with \(m = 5\) and \(m = 3\)). For every integer \(n \ge 0\), \(2 \sum_{j=0}^{n} P_j T_{n-j} = -P_{n+7} + 2P_{n+6} - P_{n+5} + 2P_{n+4} + P_{n+3} - T_{n+4} + T_{n+2}\).
The source prints this identity with a factor \(1/2\); it is stated here multiplied by \(2\).
theorem_wanted two_mul_sum_penta_mul_trib' (n : ℕ) :
2 * ∑ j ∈ Finset.range (n + 1),
fibStep 5 j * fibStep 3 (n - j) =
-fibStep 5 (n + 7) + 2 * fibStep 5 (n + 6) -
fibStep 5 (n + 5) + 2 * fibStep 5 (n + 4) +
fibStep 5 (n + 3) - fibStep 3 (n + 4) + fibStep 3 (n + 2)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 18.
Uses 1
TheoremConvolution of the \(m\)-step and \((m-2)\)-step Fibonacci numbers via Jacobsthal numbers#●ready to prove
Write \(F^{(m)}_n\) for the Fibonacci \(m\)-step numbers (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)), and \(J_n\) for the Jacobsthal numbers (\(J_0 = 0\), \(J_1 = 1\), \(J_{n+2} = J_{n+1} + 2 J_n\)). For all natural numbers \(m \ge 3\) and \(n \ge 2\),
theorem_wanted sum_fibStep_mul_sub_two (m n : ℕ) (hm : 3 ≤ m)
(hn : 2 ≤ n) :
∑ j ∈ Finset.range (n + 1),
fibStep m j * fibStep (m - 2) (n - j) =
jacobsthalSeq (n - 1) +
∑ j ∈ Finset.range (n - 1), jacobsthalSeq j *
(fibStep (m - 2) (n - j) - fibStep m (n - 2 - j))
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
def jacobsthalSeq : ℕ → ℤ
| 0 => 0
| 1 => 1
| n + 2 => jacobsthalSeq (n + 1) + 2 * jacobsthalSeq n
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:66
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 19.
Uses 2
TheoremConvolution of the Jacobsthal and tribonacci numbers#●ready to prove
Write \(J_n\) for the Jacobsthal numbers (\(J_0 = 0\), \(J_1 = 1\), \(J_{n+2} = J_{n+1} + 2J_n\)) and \(T_n\) for the tribonacci numbers (the Fibonacci \(3\)-step numbers \(F^{(3)}_n\)). For every integer \(n \ge 0\), \(2 \sum_{j=0}^{n} J_j T_{n-j} = 2J_{n+1} + J_{n+2} - T_{n+3} - T_{n+1}\).
The source prints this identity with a factor \(1/2\) on part of the right-hand side; it is stated here multiplied by \(2\).
theorem_wanted two_mul_sum_jacobsthal_mul_trib (n : ℕ) :
2 * ∑ j ∈ Finset.range (n + 1),
jacobsthalSeq j * fibStep 3 (n - j) =
2 * jacobsthalSeq (n + 1) + jacobsthalSeq (n + 2) -
fibStep 3 (n + 3) - fibStep 3 (n + 1)
def jacobsthalSeq : ℕ → ℤ
| 0 => 0
| 1 => 1
| n + 2 => jacobsthalSeq (n + 1) + 2 * jacobsthalSeq n
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:66
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 20.
Uses 2
TheoremTriple convolution of Pell numbers with two consecutive Fibonacci step sequences#●ready to prove
Write \(P_k\) for the Pell numbers (\(P_0 = 0\), \(P_1 = 1\), \(P_{k+2} = 2P_{k+1} + P_k\)), \(F^{(s)}_k\) for the Fibonacci \(s\)-step numbers, and \(\sum_{K(3,N)}\) for a sum over all \((k_1, k_2, k_3) \in \mathbb{N}^3\) with \(k_1 + k_2 + k_3 = N\). For all natural numbers \(m \ge 2\) and \(n \ge 1\),
theorem_wanted compProdSum_pell_fibStep (m n : ℕ)
(hm : 2 ≤ m) (hn : 1 ≤ n) :
compProdSum
(fun i k => ![fun t => (MetaMathlibExt.pellNumber t : ℤ),
fibStep (m - 1), fibStep m] i k) (n - 1) =
∑ j ∈ Finset.range (n + 1), fibStep (m - 1) j *
((MetaMathlibExt.pellNumber (n - j) : ℤ) -
fibStep m (n - j)) -
∑ j ∈ Finset.range n,
(MetaMathlibExt.pellNumber j : ℤ) * fibStep m (n - 1 - j)
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def pellNumber : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => 2 * pellNumber (n + 1) + pellNumber n
MathlibExt/NumberTheory/PellNumberSequence.lean:36
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 21.
Uses 3
TheoremConvolution of the Pell numbers with the Fibonacci numbers#●ready to prove
Let \(\mathcal{P}_j\) be the Pell numbers (\(\mathcal{P}_0 = 0\), \(\mathcal{P}_1 = 1\), \(\mathcal{P}_{j+2} = 2\mathcal{P}_{j+1} + \mathcal{P}_j\)) and \(F_j\) the Fibonacci numbers (\(F_0 = 0\), \(F_1 = 1\), \(F_{j+2} = F_{j+1} + F_j\)), that is, the Fibonacci \(2\)-step numbers. For every natural number \(n\),
theorem_wanted sum_pell_mul_fib (n : ℕ) :
∑ j ∈ Finset.range (n + 1),
(MetaMathlibExt.pellNumber j : ℤ) * fibStep 2 (n - j) =
(MetaMathlibExt.pellNumber n : ℤ) - fibStep 2 n
def pellNumber : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => 2 * pellNumber (n + 1) + pellNumber n
MathlibExt/NumberTheory/PellNumberSequence.lean:36
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 22.
Uses 2
TheoremPell–Fibonacci–tribonacci triple sum via a Pell–tribonacci convolution#●ready to prove
Write \(P_k\) for the Pell numbers (\(P_0 = 0\), \(P_1 = 1\), \(P_{k+2} = 2P_{k+1} + P_k\)), \(F_k\) and \(T_k\) for the Fibonacci \(2\)- and \(3\)-step numbers, and \(\sum_{K(3,n)}\) for a sum over all \((k_1, k_2, k_3) \in \mathbb{N}^3\) with \(k_1 + k_2 + k_3 = n\). For every natural number \(n\),
theorem_wanted compProdSum_pell_fib_trib (n : ℕ) :
compProdSum
(fun i k => ![fun t => (MetaMathlibExt.pellNumber t : ℤ),
fibStep 2, fibStep 3] i k) n =
(MetaMathlibExt.pellNumber (n + 1) : ℤ) + fibStep 2 (n + 2) -
fibStep 3 (n + 3) -
∑ j ∈ Finset.range (n + 1),
(MetaMathlibExt.pellNumber j : ℤ) * fibStep 3 (n - j)
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def pellNumber : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => 2 * pellNumber (n + 1) + pellNumber n
MathlibExt/NumberTheory/PellNumberSequence.lean:36
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 23.
Uses 3
TheoremClosed form for the Pell–Fibonacci–tribonacci triple convolution#●ready to prove
Write \(\mathcal{P}_n\) for the Pell numbers, \(F_n\) for the Fibonacci numbers and \(T_n\) for the tribonacci numbers (the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) with \(m = 2\) and \(m = 3\)). For every integer \(n \ge 0\), \(2 \sum \mathcal{P}_{k_1} F_{k_2} T_{k_3} = \mathcal{P}_{n+1} - T_{n+3} - T_{n+2} + 2F_{n+2}\), where the sum runs over all triples \((k_1, k_2, k_3)\) of nonnegative integers with \(k_1 + k_2 + k_3 = n\).
The source prints this identity with a factor \(1/2\); it is stated here multiplied by \(2\).
theorem_wanted two_mul_compProdSum_pell_fib_trib (n : ℕ) :
2 * compProdSum
(fun i k => ![fun t => (MetaMathlibExt.pellNumber t : ℤ),
fibStep 2, fibStep 3] i k) n =
(MetaMathlibExt.pellNumber (n + 1) : ℤ) - fibStep 3 (n + 3) -
fibStep 3 (n + 2) + 2 * fibStep 2 (n + 2)
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def pellNumber : ℕ → ℕ
| 0 => 0
| 1 => 1
| n + 2 => 2 * pellNumber (n + 1) + pellNumber n
MathlibExt/NumberTheory/PellNumberSequence.lean:36
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 23.
Uses 3
TheoremA product identity for Fibonacci step generating functions of orders \(m\), \(m+p\), \(m+p+q\)#●ready to prove
A product identity for Fibonacci step generating functions of orders \(m\), \(m+p\), \(m+p+q\). Let \(m, p, q \ge 1\) be natural numbers. For each \(k\), let \(F^{(k)} = \sum_{n \ge 0} F^{(k)}_n X^n\) in \(\mathbb{Q}[[X]]\) be the ordinary generating function of the Fibonacci \(k\)-step numbers \(F^{(k)}_n\). Then
theorem_wanted fibStepGF_triple_identity (m p q : ℕ)
(hm : 1 ≤ m) (hp : 1 ≤ p) (hq : 1 ≤ q) :
PowerSeries.X ^ (2 * m + p) *
(1 - PowerSeries.X ^ p) * (1 - PowerSeries.X ^ q) *
fibStepGF m * fibStepGF (m + p) * fibStepGF (m + p + q) =
PowerSeries.X ^ m * (1 - PowerSeries.X) *
(1 - PowerSeries.X ^ p) * fibStepGF m *
fibStepGF (m + p + q) -
(1 - PowerSeries.X) ^ 2 *
(fibStepGF (m + p) - fibStepGF m)
noncomputable def fibStepGF (m : ℕ) : PowerSeries ℚ :=
PowerSeries.mk fun n => (fibStep m n : ℚ)
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:73
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 24.
Uses 1
TheoremA product identity for three consecutive Fibonacci step generating functions#●ready to prove
Let \(m \ge 1\) be a natural number. For each \(k\), let \(F^{(k)} = \sum_{n \ge 0} F^{(k)}_n X^n\) in \(\mathbb{Q}[[X]]\) be the ordinary generating function of the Fibonacci \(k\)-step numbers \(F^{(k)}_n\). Then
theorem_wanted fibStepGF_triple_consecutive (m : ℕ)
(hm : 1 ≤ m) :
PowerSeries.X ^ (2 * m + 1) * fibStepGF m * fibStepGF (m + 1) *
fibStepGF (m + 2) =
PowerSeries.X ^ m * fibStepGF m * fibStepGF (m + 2) -
fibStepGF (m + 1) + fibStepGF m
noncomputable def fibStepGF (m : ℕ) : PowerSeries ℚ :=
PowerSeries.mk fun n => (fibStep m n : ℚ)
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:73
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 24.
Uses 1
TheoremGenerating-function form of the triple convolution with two consecutive step sequences#●ready to prove
For a natural number \(s\) let \(F^{(s)}(X) = \sum_{n \ge 0} F^{(s)}_n X^n\) be the ordinary generating function, with rational coefficients, of the Fibonacci \(s\)-step numbers \(F^{(s)}_n\). For all natural numbers \(m \ge 1\) and \(p \ge 1\), the formal power series over \(\mathbb{Q}\) satisfy
theorem_wanted fibStepGF_mixed_triple (m p : ℕ) (hm : 1 ≤ m)
(hp : 1 ≤ p) :
PowerSeries.X ^ m * fibStepGF m * fibStepGF (m + 1) *
fibStepGF p =
fibStepGF p * fibStepGF (m + 1) - fibStepGF p * fibStepGF m
noncomputable def fibStepGF (m : ℕ) : PowerSeries ℚ :=
PowerSeries.mk fun n => (fibStep m n : ℚ)
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:73
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 25.
Uses 1
TheoremTriple convolution of two consecutive Fibonacci step sequences with a third#●ready to prove
Write \(F^{(s)}_k\) for the Fibonacci \(s\)-step numbers, and write \(\sum_{K(3,N)}\) for a sum over all \((k_1, k_2, k_3) \in \mathbb{N}^3\) with \(k_1 + k_2 + k_3 = N\). For all natural numbers \(m \ge 1\), \(p \ge 1\) and \(n \ge m\),
theorem_wanted compProdSum_fibStep_triple (m p n : ℕ)
(hm : 1 ≤ m) (hp : 1 ≤ p) (hn : m ≤ n) :
compProdSum (fun i k => ![fibStep m, fibStep (m + 1),
fibStep p] i k) (n - m) =
∑ j ∈ Finset.range (n + 1),
fibStep p j * fibStep (m + 1) (n - j) -
∑ j ∈ Finset.range (n + 1),
fibStep p j * fibStep m (n - j)
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 25.
Uses 2
TheoremClosed form of the Fibonacci–tribonacci–tetranacci triple sum#●ready to prove
Write \(F_k\), \(T_k\) and \(Q_k\) for the Fibonacci \(2\)-, \(3\)- and \(4\)-step numbers, and write \(\sum_{K(3,n)}\) for a sum over all \((k_1, k_2, k_3) \in \mathbb{N}^3\) with \(k_1 + k_2 + k_3 = n\). For every natural number \(n\),
theorem_wanted compProdSum_fib_trib_tetra (n : ℕ) :
compProdSum (fun i k => ![fibStep 2, fibStep 3, fibStep 4] i k) n =
fibStep 4 (n + 4) + fibStep 4 (n + 2) - fibStep 3 (n + 5) +
fibStep 2 (n + 3)
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 26.
Uses 2
TheoremTriple convolution of the tribonacci, tetranacci and pentanacci numbers#●ready to prove
Write \(T_n\), \(Q_n\) and \(P_n\) for the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) with \(m = 3, 4, 5\) respectively. For every integer \(n \ge 7\), \(2 \sum T_{k_1} Q_{k_2} P_{k_3} = P_n + P_{n-2} + P_{n-4} + T_n - T_{n-2} - 2Q_n\), where the sum runs over all triples \((k_1, k_2, k_3)\) of nonnegative integers with \(k_1 + k_2 + k_3 = n - 7\).
The source prints this identity with a factor \(1/2\); it is stated here multiplied by \(2\).
theorem_wanted two_mul_compProdSum_trib_tetra_penta (n : ℕ)
(hn : 7 ≤ n) :
2 * compProdSum
(fun i k => ![fibStep 3, fibStep 4, fibStep 5] i k) (n - 7) =
fibStep 5 n + fibStep 5 (n - 2) + fibStep 5 (n - 4) +
fibStep 3 n - fibStep 3 (n - 2) - 2 * fibStep 4 n
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 27.
Uses 2
TheoremTriple convolution of the Fibonacci 2-, 4- and 5-step numbers#●ready to prove
Let \(F_j\), \(Q_j\) and \(P_j\) be the Fibonacci \(2\)-, \(4\)- and \(5\)-step numbers, where the Fibonacci \(k\)-step numbers start \(0, 1\) and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For every natural number \(n \ge 5\),
where the sum runs over all triples \((k_1, k_2, k_3)\) of natural numbers with \(k_1 + k_2 + k_3 = n - 5\).
The paper prints this identity with a factor \(\tfrac{1}{2}\) on part of the right side.
theorem_wanted two_mul_compProdSum_fib_tetra_penta (n : ℕ)
(hn : 5 ≤ n) :
2 * compProdSum
(fun i k => ![fibStep 2, fibStep 4, fibStep 5] i k) (n - 5) =
-2 * fibStep 4 n - 2 * fibStep 4 (n - 2) +
fibStep 5 (n + 1) + fibStep 5 (n - 2) - fibStep 2 (n + 1) +
2 * fibStep 2 n
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 28.
Uses 2
TheoremTriple convolution of the Fibonacci 2-, 3- and 5-step numbers#●ready to prove
Let \(F_j\), \(T_j\) and \(P_j\) be the Fibonacci \(2\)-, \(3\)- and \(5\)-step numbers, where the Fibonacci \(k\)-step numbers start \(0, 1\) and each later term is the sum of the \(k\) terms before it (terms of negative index being \(0\)). For every natural number \(n \ge 5\),
where the sum runs over all triples \((k_1, k_2, k_3)\) of natural numbers with \(k_1 + k_2 + k_3 = n - 5\).
The paper prints this identity with a factor \(\tfrac{1}{2}\).
theorem_wanted two_mul_compProdSum_fib_trib_penta (n : ℕ)
(hn : 5 ≤ n) :
2 * compProdSum
(fun i k => ![fibStep 2, fibStep 3, fibStep 5] i k) (n - 5) =
fibStep 5 n - fibStep 5 (n - 1) + fibStep 5 (n - 2) -
fibStep 3 n - fibStep 3 (n - 2) + fibStep 2 (n - 1)
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 29.
Uses 2
TheoremA product identity for four consecutive Fibonacci step generating functions#●ready to prove
Let \(m \ge 1\) be a natural number. For each \(k\), let \(F^{(k)} = \sum_{n \ge 0} F^{(k)}_n X^n\) in \(\mathbb{Q}[[X]]\) be the ordinary generating function of the Fibonacci \(k\)-step numbers \(F^{(k)}_n\). Then
theorem_wanted fibStepGF_quadruple_consecutive (m : ℕ)
(hm : 1 ≤ m) :
PowerSeries.X ^ (2 * m + 1) * fibStepGF m * fibStepGF (m + 1) *
fibStepGF (m + 2) * fibStepGF (m + 3) =
PowerSeries.X ^ m * fibStepGF m * fibStepGF (m + 2) *
fibStepGF (m + 3) -
fibStepGF (m + 1) * fibStepGF (m + 3) +
fibStepGF m * fibStepGF (m + 3)
noncomputable def fibStepGF (m : ℕ) : PowerSeries ℚ :=
PowerSeries.mk fun n => (fibStep m n : ℚ)
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:73
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 31.
Uses 1
TheoremFour-fold convolution of the Fibonacci, tribonacci, tetranacci and pentanacci numbers#●ready to prove
Write \(F_n\), \(T_n\), \(Q_n\) and \(P_n\) for the Fibonacci \(m\)-step numbers \(F^{(m)}_n\) with \(m = 2, 3, 4, 5\) respectively. For every integer \(n \ge 5\), \(2 \sum F_{k_1} T_{k_2} Q_{k_3} P_{k_4} = P_{n+4} - P_{n+3} + P_{n+2} + T_{n+3} + T_{n+1} - F_n - 2Q_{n+3} - 2Q_{n+1}\), where the sum runs over all \(4\)-tuples \((k_1, k_2, k_3, k_4)\) of nonnegative integers with \(k_1 + k_2 + k_3 + k_4 = n - 5\).
The source prints this identity with a factor \(1/2\); it is stated here multiplied by \(2\).
theorem_wanted two_mul_compProdSum_four (n : ℕ) (hn : 5 ≤ n) :
2 * compProdSum (fun i k => ![fibStep 2, fibStep 3,
fibStep 4, fibStep 5] i k) (n - 5) =
fibStep 5 (n + 4) - fibStep 5 (n + 3) + fibStep 5 (n + 2) +
fibStep 3 (n + 3) + fibStep 3 (n + 1) - fibStep 2 n -
2 * fibStep 4 (n + 3) - 2 * fibStep 4 (n + 1)
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 32.
Uses 2
TheoremConvolution of four consecutive Fibonacci step sequences#●ready to prove
Write \(F^{(s)}_k\) for the Fibonacci \(s\)-step numbers, and write \(\sum_{K(4,N)}\) for a sum over all \((k_1, k_2, k_3, k_4) \in \mathbb{N}^4\) with \(k_1 + k_2 + k_3 + k_4 = N\). For all natural numbers \(m \ge 1\) and \(n \ge 2m + 2\),
The paper prints the index of the last factor on the left as \(k_3\); it is corrected to \(k_4\) here.
theorem_wanted compProdSum_four_consecutive (m n : ℕ)
(hm : 1 ≤ m) (hn : 2 * m + 2 ≤ n) :
compProdSum (fun i k => ![fibStep m, fibStep (m + 1),
fibStep (m + 2), fibStep (m + 3)] i k) (n - 2 * m - 2) =
∑ j ∈ Finset.range (n + 1),
(fibStep (m + 3) j - fibStep (m + 2) j) *
(fibStep (m + 1) (n - j) - fibStep m (n - j))
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 34.
Uses 2
TheoremConvolution of an even number of consecutive Fibonacci step sequences#●ready to prove
Write \(F^{(s)}_k\) for the Fibonacci \(s\)-step numbers, and write \(\sum_{K(r,N)}\) for a sum over all \((k_1, \dots, k_r) \in \mathbb{N}^r\) with \(k_1 + \dots + k_r = N\). For all natural numbers \(\ell \ge 1\), \(m \ge 1\) and \(n \ge \ell(m + \ell - 1)\),
theorem_wanted compProdSum_even (l m n : ℕ) (hl : 1 ≤ l)
(hm : 1 ≤ m) (hn : l * (m + l - 1) ≤ n) :
@compProdSum (2 * l) (fun (j : Fin (2 * l)) k =>
fibStep (m + j.val) k) (n - l * (m + l - 1)) =
@compProdSum l (fun (j : Fin l) k =>
fibStep (m + 2 * j.val + 1) k - fibStep (m + 2 * j.val) k) n
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 35.
Uses 2
TheoremConvolution of an odd number of consecutive Fibonacci step sequences#●ready to prove
Write \(F^{(s)}_k\) for the Fibonacci \(s\)-step numbers, and write \(\sum_{K(r,N)}\) for a sum over all \((k_1, \dots, k_r) \in \mathbb{N}^r\) with \(k_1 + \dots + k_r = N\). For all natural numbers \(\ell \ge 1\), \(m \ge 1\) and \(n \ge \ell(m + \ell - 1)\),
theorem_wanted compProdSum_odd (l m n : ℕ) (hl : 1 ≤ l)
(hm : 1 ≤ m) (hn : l * (m + l - 1) ≤ n) :
@compProdSum (2 * l + 1) (fun (j : Fin (2 * l + 1)) k =>
fibStep (m + j.val) k) (n - l * (m + l - 1)) =
@compProdSum (l + 1) (fun (j : Fin (l + 1)) k =>
if (j.val : ℕ) = l then fibStep (m + 2 * l) k
else fibStep (m + 2 * j.val + 1) k -
fibStep (m + 2 * j.val) k) n
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 35.
Uses 2
TheoremTwo convolution forms of the Fibonacci–tribonacci–tetranacci triple sum#●ready to prove
Write \(F_k\), \(T_k\) and \(Q_k\) for the Fibonacci \(2\)-, \(3\)- and \(4\)-step numbers, and write \(\sum_{K(3,N)}\) for a sum over all \((k_1, k_2, k_3) \in \mathbb{N}^3\) with \(k_1 + k_2 + k_3 = N\). For every natural number \(n \ge 2\),
theorem_wanted compProdSum_fib_trib_tetra_eq (n : ℕ)
(hn : 2 ≤ n) :
compProdSum (fun i k => ![fibStep 2, fibStep 3, fibStep 4] i k)
(n - 2) =
∑ j ∈ Finset.range (n + 1),
(fibStep 3 j - fibStep 2 j) * fibStep 4 (n - j) ∧
compProdSum (fun i k => ![fibStep 2, fibStep 3, fibStep 4] i k)
(n - 2) =
∑ j ∈ Finset.range (n + 2),
fibStep 2 (n + 1 - j) * (fibStep 4 j - fibStep 3 j)
def compProdSum {r : ℕ} (seqs : Fin r → ℕ → ℤ) (n : ℕ) : ℤ :=
∑ k ∈ (Finset.univ : Finset (Fin r → Fin (n + 1))).filter
(fun k => ∑ i, (k i).val = n), ∏ i, seqs i (k i).val
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:78
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Corollary 36.
Uses 2
TheoremSum of \(2m + 2\) consecutive Fibonacci \(m\)-step numbers#●ready to prove
Write \(F^{(m)}_n\) for the Fibonacci \(m\)-step numbers (\(F^{(m)}_0 = 0\), \(F^{(m)}_1 = 1\), and each later term is the sum of the \(m\) terms before it, terms at negative indices being \(0\)). For every natural number \(m \ge 2\) and every natural number \(n\),
theorem_wanted sum_fibStep_window (m n : ℕ) (hm : 2 ≤ m) :
∑ k ∈ Finset.range (2 * m + 2), fibStep m (n + k) =
4 * fibStep m (n + 2 * m)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Lemma 39.
Uses 1
TheoremConvolution of the Fibonacci \(6\)-step numbers with the Fibonacci numbers#●ready to prove
Write \(s_n = F^{(6)}_n\) for the Fibonacci \(6\)-step numbers and \(F_n = F^{(2)}_n\) for the Fibonacci numbers. For every natural number \(n \ge 3\),
The source prints this identity divided by \(5\).
theorem_wanted five_mul_sum_fibStep6_mul_fib (n : ℕ)
(hn : 3 ≤ n) :
5 * ∑ j ∈ Finset.range (n + 1),
fibStep 6 j * fibStep 2 (n - j) =
fibStep 6 (n + 3) + fibStep 6 (n + 1) - fibStep 6 n +
3 * fibStep 6 (n - 1) + fibStep 6 (n - 3) -
fibStep 2 (n + 3) - fibStep 2 (n + 1)
def fibStep (m n : ℕ) : ℤ := (fibStepSeq m n).getD n 0
WantedExt/Combinatorics/Enumerative/FibStepConvolutionWanted.lean:62
Sources
- Robert Frontczak and Karol Gryszka, "General Convolution Sums Involving Fibonacci
m-Step Numbers", Theorem 41.
Uses 1
DefinitionTruncated binomial sum \(G_n^{(k)}\)#✓fully proved
For an integer \(x\) and a natural number \(j\) let \(\binom{x}{j} = x(x-1)\cdots(x-j+1)/j!\). For natural numbers \(k\) and \(n\), the rational number \(G_n^{(k)}\) is
where \(m = \lfloor (n-1)/(k+1) \rfloor\) for \(n \ge 1\) and \(m = 0\) for \(n = 0\), and the term \(\binom{(k+1)\ell - n}{\ell - 1}\) is taken to be \(0\) for \(\ell = 0\).
The paper defines \(G_n^{(k)}\) only for \(n, k \ge 2\).
public def kFibonacciBinomialTruncation (k n : ℕ) : ℚ :=
2 ^ ((n : ℤ) - 2) * ∑ ℓ ∈ Finset.range ((n - 1) / (k + 1) + 1),
((Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) ℓ -
(if ℓ = 0 then 0 else Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) (ℓ - 1)) : ℤ) : ℚ) /
2 ^ ((k + 1) * ℓ)
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, definition before Proposition 10.
TheoremValue \(G_2^{(2)} = 1\)#✓fully proved
The truncated binomial sum satisfies \(G_2^{(2)} = 1\).
This is the Fibonacci number \(F_2\).
public theorem kFibonacciBinomialTruncation_two_two : kFibonacciBinomialTruncation 2 2 = 1
public def kFibonacciBinomialTruncation (k n : ℕ) : ℚ :=
2 ^ ((n : ℤ) - 2) * ∑ ℓ ∈ Finset.range ((n - 1) / (k + 1) + 1),
((Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) ℓ -
(if ℓ = 0 then 0 else Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) (ℓ - 1)) : ℤ) : ℚ) /
2 ^ ((k + 1) * ℓ)
WantedExt/NumberTheory/KFibonacciLagrangeInversionWanted.lean:50
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, definition before Proposition 10.
Uses 1
TheoremValue \(G_4^{(2)} = 3\)#✓fully proved
The truncated binomial sum satisfies \(G_4^{(2)} = 3\).
This is the Fibonacci number \(F_4\), and \(n = 4\) is the first index for which the sum defining \(G_n^{(2)}\) has two terms.
public theorem kFibonacciBinomialTruncation_two_four : kFibonacciBinomialTruncation 2 4 = 3
public def kFibonacciBinomialTruncation (k n : ℕ) : ℚ :=
2 ^ ((n : ℤ) - 2) * ∑ ℓ ∈ Finset.range ((n - 1) / (k + 1) + 1),
((Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) ℓ -
(if ℓ = 0 then 0 else Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) (ℓ - 1)) : ℤ) : ℚ) /
2 ^ ((k + 1) * ℓ)
WantedExt/NumberTheory/KFibonacciLagrangeInversionWanted.lean:50
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, definition before Proposition 10.
Uses 1
TheoremLagrange inversion formula#●ready to prove
Let \(f, g : \mathbb{C} \to \mathbb{C}\) be analytic at \(z_0\). There are \(\varepsilon > 0\) and \(\delta > 0\) such that for every \(\alpha \in \mathbb{C}\) with \(|\alpha| < \delta\) the equation \(w = z_0 + \alpha f(w)\) has exactly one solution \(w\) with \(|w - z_0| < \varepsilon\), and for this solution the series \(\sum_{n \ge 1} \frac{\alpha^n}{n!} \frac{d^{n-1}}{dz^{n-1}} \bigl(f(z)^n g'(z)\bigr)\big|_{z=z_0}\) converges absolutely to \(g(w) - g(z_0)\).
public theorem_wanted lagrange_inversion_formula_analytic (z₀ : ℂ) (f g : ℂ → ℂ)
(hf : AnalyticAt ℂ f z₀) (hg : AnalyticAt ℂ g z₀) :
∃ ε > 0, ∃ δ > 0, ∀ α : ℂ, ‖α‖ < δ →
(∃! w, w ∈ Metric.ball z₀ ε ∧ w = z₀ + α * f w) ∧
∀ w ∈ Metric.ball z₀ ε, w = z₀ + α * f w →
HasSum (fun m : ℕ => α ^ (m + 1) / ((m + 1).factorial : ℂ) *
iteratedDeriv m (fun z => f z ^ (m + 1) * deriv g z) z₀)
(g w - g z₀)
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Theorem 1 (
jis-2024-24.1.1-thm-1).
TheoremBinomial series for the powers of the dominant \(k\)-Fibonacci root#●ready to prove
Let \(k \ge 2\) and let \(\rho_k > 0\) be a real number with \(\rho_k^k = 1 + \rho_k + \dots + \rho_k^{k-1}\). For integers \(a\) and \(j \ge 0\) write \(\binom{a}{j} = a(a-1)\cdots(a-j+1)/j!\). Then for every \(n \ge 1\) the series \(S = \sum_{\ell \ge 0} \frac{1}{\ell+1} \binom{k(\ell+1)+\ell-n}{\ell} 2^{-(k+1)\ell}\) converges absolutely and \(\rho_k^n = 2^n - n\, 2^{n-k-1} S\).
For \(n = 1\) this is the paper's series for \(\rho_k\) itself.
public theorem_wanted kFibonacci_root_pow_eq_binomial_series (k n : ℕ) (hk : 2 ≤ k)
(hn : 1 ≤ n) (α : ℝ) (hα : 0 < α) (hroot : α ^ k = ∑ i ∈ Finset.range k, α ^ i) :
∃ S : ℝ, HasSum (fun ℓ : ℕ => 1 / ((ℓ : ℝ) + 1) *
((Ring.choose ((k * (ℓ + 1) + ℓ : ℕ) - (n : ℤ)) ℓ : ℤ) : ℝ) / 2 ^ ((k + 1) * ℓ)) S ∧
α ^ n = 2 ^ n - n * (2 : ℝ) ^ ((n : ℤ) - k - 1) * S
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Theorem 3 (
jis-2024-24.1.1-thm-3).
TheoremBinomial series for the powers of the golden ratio#●ready to prove
Let \(\varphi = (1 + \sqrt{5})/2\) be the golden ratio, and for an integer \(x\) and a natural number \(j\) let \(\binom{x}{j} = x(x-1)\cdots(x-j+1)/j!\). For every natural number \(n \ge 1\) the series \(S_n = \sum_{\ell \ge 0} \frac{1}{\ell + 1} \binom{3\ell + 2 - n}{\ell} 2^{-3\ell}\) converges absolutely and \(\varphi^n = 2^n - n \, 2^{n-3} S_n\). Moreover, the series \(\sum_{\ell \ge 0} \frac{1}{\ell + 1} \binom{3\ell + 1}{\ell} 2^{-(3\ell + 2)}\) converges absolutely to \(2 - \varphi\).
public theorem_wanted goldenRatio_pow_eq_binomial_series :
(∀ n : ℕ, 1 ≤ n → ∃ S : ℝ, HasSum (fun ℓ : ℕ => 1 / ((ℓ : ℝ) + 1) *
((Ring.choose ((3 * ℓ + 2 : ℕ) - (n : ℤ)) ℓ : ℤ) : ℝ) / 2 ^ (3 * ℓ)) S ∧
Real.goldenRatio ^ n = 2 ^ n - n * (2 : ℝ) ^ ((n : ℤ) - 3) * S) ∧
HasSum (fun ℓ : ℕ => 1 / ((ℓ : ℝ) + 1) * ((3 * ℓ + 1).choose ℓ : ℝ) / 2 ^ (3 * ℓ + 2))
(2 - Real.goldenRatio)
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Corollary 5 (
jis-2024-24.1.1-cor-5).
TheoremBinomial series summed at the \(k\)-Fibonacci root#●ready to prove
Let \(k \ge 2\) be a natural number and \(\rho > 0\) a real number with \(\rho^k = 1 + \rho + \cdots + \rho^{k-1}\), and for an integer \(x\) and a natural number \(j\) let \(\binom{x}{j} = x(x-1)\cdots(x-j+1)/j!\). Then for every integer \(a\) the series below converges absolutely and
public theorem_wanted hasSum_choose_div_two_pow_kFibonacci_root (k : ℕ) (hk : 2 ≤ k) (a : ℤ)
(α : ℝ) (hα : 0 < α) (hroot : α ^ k = ∑ i ∈ Finset.range k, α ^ i) :
HasSum (fun ℓ : ℕ => ((Ring.choose (((k + 1) * ℓ : ℕ) + a) ℓ : ℤ) : ℝ) /
2 ^ ((k + 1) * ℓ))
((2 : ℝ) ^ (a + 1) * α ^ (-a) / ((k + 1) * α - 2 * k))
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Theorem 6 (
jis-2024-24.1.1-thm-6).
TheoremDifference binomial series at the \(k\)-Fibonacci root#●ready to prove
Let \(k \ge 2\) be a natural number and \(\rho > 0\) a real number with \(\rho^k = 1 + \rho + \cdots + \rho^{k-1}\), and for an integer \(x\) and a natural number \(j\) let \(\binom{x}{j} = x(x-1)\cdots(x-j+1)/j!\). For every natural number \(n \ne 1\) the series below converges absolutely and
where the term \(\binom{(k+1)\ell - n}{\ell - 1}\) is taken to be \(0\) for \(\ell = 0\).
public theorem_wanted hasSum_binomial_series_kFibonacci_asymptotic (k n : ℕ) (hk : 2 ≤ k)
(hn : n ≠ 1) (α : ℝ) (hα : 0 < α) (hroot : α ^ k = ∑ i ∈ Finset.range k, α ^ i) :
HasSum (fun ℓ : ℕ => (2 : ℝ) ^ ((n : ℤ) - 2) *
((Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) ℓ -
(if ℓ = 0 then 0 else Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) (ℓ - 1)) : ℤ) : ℝ) /
2 ^ ((k + 1) * ℓ))
((α - 1) / ((k + 1) * α - 2 * k) * α ^ ((n : ℤ) - 1))
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Theorem 8 (
jis-2024-24.1.1-thm-8), withAs_n^{(k)}from equation (8).
Theorem\(k\)-Fibonacci numbers as truncated binomial sums#●ready to prove
Let \(k \ge 2\) and let \((F_n)_{n \ge 0}\) be the \(k\)-Fibonacci sequence, given by \(F_0 = \dots = F_{k-2} = 0\), \(F_{k-1} = 1\) and \(F_{m+k} = F_m + F_{m+1} + \dots + F_{m+k-1}\) for all \(m \ge 0\). For integers \(a\) and \(j \ge 0\) write \(\binom{a}{j} = a(a-1)\cdots(a-j+1)/j!\), and put \(\binom{a}{-1} = 0\). For \(n \ge 2\) let \(G_n^{(k)}\) be the truncated binomial sum \(G_n^{(k)} = 2^{n-2} \sum_{\ell=0}^{\lfloor (n-1)/(k+1) \rfloor} \left(\binom{(k+1)\ell-n}{\ell} - \binom{(k+1)\ell-n}{\ell-1}\right) 2^{-(k+1)\ell}\). Then \(F_{n+k-2} = G_n^{(k)}\) for every \(n \ge 2\).
public theorem_wanted kFibonacci_eq_kFibonacciBinomialTruncation (k n : ℕ) (hk : 2 ≤ k)
(hn : 2 ≤ n) (F : ℕ → ℤ) (hF0 : ∀ i < k - 1, F i = 0) (hF1 : F (k - 1) = 1)
(hrec : ∀ m, F (m + k) = ∑ i ∈ Finset.range k, F (m + i)) :
(F (n + k - 2) : ℚ) = kFibonacciBinomialTruncation k n
public def kFibonacciBinomialTruncation (k n : ℕ) : ℚ :=
2 ^ ((n : ℤ) - 2) * ∑ ℓ ∈ Finset.range ((n - 1) / (k + 1) + 1),
((Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) ℓ -
(if ℓ = 0 then 0 else Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) (ℓ - 1)) : ℤ) : ℚ) /
2 ^ ((k + 1) * ℓ)
WantedExt/NumberTheory/KFibonacciLagrangeInversionWanted.lean:50
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Theorem 9 (
jis-2024-24.1.1-thm-9).
Uses 1
TheoremInitial values of the truncated binomial sums#●ready to prove
Let \(k \ge 2\) be a natural number and let \(G_n^{(k)}\) be the truncated binomial sum. Then \(G_n^{(k)} = 2^{n-2}\) for every natural number \(n\) with \(2 \le n \le k + 1\), and \(G_{k+2}^{(k)} = 2^k - 1\).
public theorem_wanted kFibonacciBinomialTruncation_initial_values (k : ℕ) (hk : 2 ≤ k) :
(∀ n, 2 ≤ n → n ≤ k + 1 → kFibonacciBinomialTruncation k n = 2 ^ (n - 2)) ∧
kFibonacciBinomialTruncation k (k + 2) = 2 ^ k - 1
public def kFibonacciBinomialTruncation (k n : ℕ) : ℚ :=
2 ^ ((n : ℤ) - 2) * ∑ ℓ ∈ Finset.range ((n - 1) / (k + 1) + 1),
((Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) ℓ -
(if ℓ = 0 then 0 else Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) (ℓ - 1)) : ℤ) : ℚ) /
2 ^ ((k + 1) * ℓ)
WantedExt/NumberTheory/KFibonacciLagrangeInversionWanted.lean:50
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Proposition 10 (
jis-2024-24.1.1-prop-10).
Uses 1
TheoremRecurrence for the truncated binomial sums#●ready to prove
Let \(G_n^{(k)}\) be the truncated binomial sum. For all natural numbers \(k \ge 2\) and \(n \ge 2\), \(G_{n+k+1}^{(k)} = 2 G_{n+k}^{(k)} - G_n^{(k)}\).
public theorem_wanted kFibonacciBinomialTruncation_recurrence (k n : ℕ) (hk : 2 ≤ k)
(hn : 2 ≤ n) :
kFibonacciBinomialTruncation k (n + k + 1) =
2 * kFibonacciBinomialTruncation k (n + k) - kFibonacciBinomialTruncation k n
public def kFibonacciBinomialTruncation (k n : ℕ) : ℚ :=
2 ^ ((n : ℤ) - 2) * ∑ ℓ ∈ Finset.range ((n - 1) / (k + 1) + 1),
((Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) ℓ -
(if ℓ = 0 then 0 else Ring.choose (((k + 1) * ℓ : ℕ) - (n : ℤ)) (ℓ - 1)) : ℤ) : ℚ) /
2 ^ ((k + 1) * ℓ)
WantedExt/NumberTheory/KFibonacciLagrangeInversionWanted.lean:50
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Proposition 11 (
jis-2024-24.1.1-prop-11).
Uses 1
TheoremBinomial-sum formula for the \(k\)-Fibonacci numbers#●ready to prove
Let \(k \ge 2\) and let \((F_n)_{n \ge 0}\) be the \(k\)-Fibonacci sequence, given by \(F_0 = \dots = F_{k-2} = 0\), \(F_{k-1} = 1\) and \(F_{m+k} = F_m + F_{m+1} + \dots + F_{m+k-1}\) for all \(m \ge 0\). For integers \(a\) and \(j \ge 0\) write \(\binom{a}{j} = a(a-1)\cdots(a-j+1)/j!\), and put \(\binom{a}{-1} = 0\). Then for every \(n \ge k\),
public theorem_wanted kFibonacci_eq_binomial_sum (k n : ℕ) (hk : 2 ≤ k) (hkn : k ≤ n)
(F : ℕ → ℤ) (hF0 : ∀ i < k - 1, F i = 0) (hF1 : F (k - 1) = 1)
(hrec : ∀ m, F (m + k) = ∑ i ∈ Finset.range k, F (m + i)) :
(F n : ℚ) = 2 ^ (n - k) * ∑ ℓ ∈ Finset.range ((n - k + 1) / (k + 1) + 1),
((Ring.choose (((k + 1) * ℓ + k : ℕ) - (n : ℤ) - 2) ℓ -
(if ℓ = 0 then 0 else Ring.choose (((k + 1) * ℓ + k : ℕ) - (n : ℤ) - 2) (ℓ - 1)) :
ℤ) : ℚ) / 2 ^ ((k + 1) * ℓ)
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Corollary 12 (
jis-2024-24.1.1-cor-12).
TheoremFibonacci numbers as a truncated binomial sum#●ready to prove
Let \(F_n\) be the Fibonacci numbers (\(F_0 = 0\), \(F_1 = 1\), \(F_{n+2} = F_{n+1} + F_n\)), and for an integer \(x\) and a natural number \(j\) let \(\binom{x}{j} = x(x-1)\cdots(x-j+1)/j!\). For every natural number \(n \ge 2\),
where the term \(\binom{3\ell - n}{\ell - 1}\) is taken to be \(0\) for \(\ell = 0\).
public theorem_wanted fib_eq_binomial_sum (n : ℕ) (hn : 2 ≤ n) :
(Nat.fib n : ℚ) = 2 ^ (n - 2) * ∑ ℓ ∈ Finset.range ((n - 1) / 3 + 1),
((Ring.choose ((3 * ℓ : ℕ) - (n : ℤ)) ℓ -
(if ℓ = 0 then 0 else Ring.choose ((3 * ℓ : ℕ) - (n : ℤ)) (ℓ - 1)) : ℤ) : ℚ) /
2 ^ (3 * ℓ)
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Corollary 13 (
jis-2024-24.1.1-cor-13).
TheoremAlternating binomial formula for the \(k\)-Fibonacci numbers#●ready to prove
Let \(k \ge 2\) be a natural number and let \(F_n^{(k)}\) be the \(k\)-Fibonacci numbers: \(F_i^{(k)} = 0\) for \(i < k - 1\), \(F_{k-1}^{(k)} = 1\) and \(F_{m+k}^{(k)} = F_m^{(k)} + F_{m+1}^{(k)} + \cdots + F_{m+k-1}^{(k)}\) for every \(m \ge 0\). For an integer \(x\) and a natural number \(j\) let \(\binom{x}{j} = x(x-1)\cdots(x-j+1)/j!\). Then for every natural number \(n \ge k\),
where the term \(\binom{n - (\ell+1)k}{\ell - 2}\) is taken to be \(0\) for \(\ell = 1\).
The paper assumes \(n \ne 2k - 1\); for \(n = 2k - 1\) the sum is empty and both sides equal \(2^{k-1}\).
public theorem_wanted kFibonacci_eq_alternating_binomial_sum (k n : ℕ) (hk : 2 ≤ k)
(hkn : k ≤ n) (F : ℕ → ℤ) (hF0 : ∀ i < k - 1, F i = 0) (hF1 : F (k - 1) = 1)
(hrec : ∀ m, F (m + k) = ∑ i ∈ Finset.range k, F (m + i)) :
(F n : ℚ) = 2 ^ (n - k) + ∑ ℓ ∈ Finset.Icc 1 ((n - k + 1) / (k + 1)),
(-1) ^ ℓ * ((Ring.choose ((n : ℤ) - (ℓ + 1) * k + 2) ℓ -
(if ℓ = 1 then 0 else Ring.choose ((n : ℤ) - (ℓ + 1) * k) (ℓ - 2)) : ℤ) : ℚ) *
(2 : ℚ) ^ ((n : ℤ) - (k + 1) * ℓ - k)
Sources
- Bakir Farhi, Some Applications of the Lagrange Inversion Formula for the k-Fibonacci Numbers, Journal of Integer Sequences 27 (2024), Article 24.1.1, Corollary 14 (
jis-2024-24.1.1-cor-14).
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.