Bernoulli–Fibonacci and Euler–Lucas double sums
DefinitionThe square root of five#✓fully proved
This is the real number \(\sqrt{5}\), the nonnegative real square root of \(5\).
noncomputable def sqrt5 : ℝ := Real.sqrt 5
DefinitionThe golden ratio \(\alpha\)#✓fully proved
The golden ratio is the real number \(\alpha = (1 + \sqrt{5})/2\).
noncomputable def fibAlpha : ℝ := (1 + Real.sqrt 5) / 2
Used by 1
DefinitionThe conjugate golden ratio \(\beta\)#✓fully proved
The real number \(\beta = (1 - \sqrt{5})/2\), the conjugate of the golden ratio \((1 + \sqrt{5})/2\).
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
Used by 9
DefinitionEuler numbers#✓fully proved
For a natural number \(n\), the Euler number \(E_n \in \mathbb{Q}\) is \(0\) when \(n\) is odd, and when \(n = 2k\) is even it is the even-index Euler number \(E_{2k}\), where \(E_0 = 1\) and \(\sum_{i=0}^{k} \binom{2k}{2i} E_{2i} = 0\) for \(k \ge 1\). The first values are \(E_0 = 1\), \(E_2 = -1\), \(E_4 = 5\).
These are the Euler (secant) numbers, with exponential generating function \(2/(e^t + e^{-t})\).
noncomputable def eulerSecNumber (n : ℕ) : ℚ :=
if n % 2 = 1 then 0
else ((MathlibExt.Analysis.Ramanujan.Part1Ch5.Entry10bEuleriansymmetry.chapter5EulerEven (n / 2) : ℤ) : ℚ)
def chapter5EulerEven (n : ℕ) : ℤ :=
Nat.strongRec (motive := fun _ => ℤ)
(fun m previous =>
if m = 0 then 1
else -∑ k : Fin m,
(Nat.choose (2 * m) (2 * k.val) : ℤ) * previous k.val k.isLt) n
MathlibExt/Analysis/Ramanujan/Part1Ch5Entry10bEuleriansymmetry.lean:38
Uses 1 · Used by 7
DefinitionGenocchi–Lucas coefficients#✓fully proved
For a natural number \(n\), the Genocchi–Lucas coefficient is the real number
where \(G_k\) are the Genocchi numbers and \(L_k\) the Lucas numbers.
These are the inner coefficients of the corrected Theorem 11 of Bensaci, Boumahdi and Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers"; the paper's printed coefficient omits the last term.
noncomputable def genLucasCoeff (n : ℕ) : ℝ :=
(∑ k ∈ Finset.range (n + 1), (Real.sqrt 5) ^ k *
(Nat.choose n k : ℝ) * (genocchiNumber k : ℝ) *
((lucasNumber (n - k + 1) : ℝ) / (n - k + 1 : ℕ))) +
2 * (Real.sqrt 5) ^ (n + 1) *
((genocchiNumber (n + 1) : ℝ) / (n + 1 : ℕ))
public noncomputable def genocchiNumber (n : ℕ) : ℚ :=
(n.factorial : ℚ) * (PowerSeries.coeff n) genocchiPowerSeries
MathlibExt/NumberTheory/GenocchiNumber.lean:45
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
Uses 2 · Used by 4
TheoremBernoulli–Fibonacci expansion of \((x + \beta)^m\)#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), let \(B_k\) be the Bernoulli numbers, normalized so that \(B_1 = -1/2\), and let \(F_k\) be the Fibonacci numbers (\(F_0 = 0\), \(F_1 = 1\)). Then for every natural number \(m\) and every real number \(x\),
theorem_wanted add_fibBeta_pow_eq_sum (m : ℕ) (x : ℝ) :
(x + fibBeta) ^ m =
∑ n ∈ Finset.range (m + 1), ∑ k ∈ Finset.range (n + 1),
(Real.sqrt 5) ^ k * (Nat.choose n k : ℝ) *
(Nat.choose m n : ℝ) * (bernoulli k : ℝ) *
((Nat.fib (n - k + 1) : ℝ) / (n - k + 1 : ℕ)) *
x ^ (m - n)
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Theorem 1.
Uses 1
TheoremA vanishing double sum of Bernoulli and Fibonacci numbers#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), let \(F_n\) be the Fibonacci numbers, and let \(B_k\) be the Bernoulli numbers, with \(B_1 = -\tfrac{1}{2}\). For every natural number \(m \ge 1\),
This is the case \(x = -\beta\) of Theorem 1, the expansion of \((x + \beta)^m\). The paper prints the factor \(\beta^{-n}\) in place of \((-\beta)^{m-n}\), which makes the sum equal to \(2^m\).
theorem_wanted sum_bernoulli_fib_neg_fibBeta (m : ℕ) (hm : 1 ≤ m) :
∑ n ∈ Finset.range (m + 1), ∑ k ∈ Finset.range (n + 1),
(Real.sqrt 5) ^ k * (Nat.choose n k : ℝ) *
(Nat.choose m n : ℝ) * (bernoulli k : ℝ) *
((Nat.fib (n - k + 1) : ℝ) / (n - k + 1 : ℕ)) *
(-fibBeta) ^ (m - n) = 0
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 2.
Uses 1
TheoremBernoulli–Fibonacci double sum with weights \((-2)^n\)#●ready to prove
Let \(B_k\) be the Bernoulli numbers, with \(B_1 = -1/2\), and let \(F_k\) be the Fibonacci numbers (\(F_0 = 0\), \(F_1 = 1\)). For every natural number \(m\),
theorem_wanted sum_neg_two_pow_bernoulli_fib (m : ℕ) :
∑ n ∈ Finset.range (m + 1), ∑ k ∈ Finset.range (n + 1),
(-2 : ℝ) ^ n * (Real.sqrt 5) ^ k * (Nat.choose n k : ℝ) *
(Nat.choose m n : ℝ) * (bernoulli k : ℝ) *
((Nat.fib (n - k + 1) : ℝ) / (n - k + 1 : ℕ)) =
(Real.sqrt 5) ^ m
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 3.
TheoremDerivatives of the Bernoulli–Fibonacci expansion of \((x + \beta)^m\)#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), let \(B_k\) be the Bernoulli numbers with \(B_1 = -1/2\), let \(F_k\) be the Fibonacci numbers, and write \(a^{\underline{s}} = a(a-1)\cdots(a-s+1)\) for the falling factorial. Then for all natural numbers \(s \le m\) and every real number \(x\),
where the terms with \(m - n < s\) are \(0\) because \((m-n)^{\underline{s}} = 0\) there.
This is the paper's Corollary 4, obtained by differentiating Theorem 1 \(s\) times; the printed falling factorial of \(m - n + 1\) is off by one, and the identity is written here multiplied through by \(m^{\underline{s}}\).
theorem_wanted descFactorial_mul_add_fibBeta_pow (m s : ℕ)
(hs : s ≤ m) (x : ℝ) :
(Nat.descFactorial m s : ℝ) * (x + fibBeta) ^ (m - s) =
∑ n ∈ Finset.range (m + 1), ∑ k ∈ Finset.range (n + 1),
(Real.sqrt 5) ^ k * (Nat.choose n k : ℝ) *
(Nat.choose m n : ℝ) * (bernoulli k : ℝ) *
((Nat.fib (n - k + 1) : ℝ) / (n - k + 1 : ℕ)) *
(Nat.descFactorial (m - n) s : ℝ) * x ^ (m - n - s)
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 4.
Uses 1
TheoremEuler–Lucas expansion of \((x + 1/2)^m\)#●ready to prove
Let \(E_k\) be the Euler (secant) numbers, which vanish at odd \(k\) and begin \(E_0 = 1\), \(E_2 = -1\), \(E_4 = 5\), and let \(L_k\) be the Lucas numbers. Then for every natural number \(m\) and every real number \(x\),
theorem_wanted add_half_pow_eq_sum (m : ℕ) (x : ℝ) :
(x + 1 / 2) ^ m =
(1 / 2) * ∑ n ∈ Finset.range (m + 1),
∑ k ∈ Finset.range (n + 1),
((Real.sqrt 5) / 2) ^ k * (Nat.choose n k : ℝ) *
(Nat.choose m n : ℝ) * x ^ (m - n) *
(eulerSecNumber k : ℝ) * (lucasNumber (n - k) : ℝ)
noncomputable def eulerSecNumber (n : ℕ) : ℚ :=
if n % 2 = 1 then 0
else ((MathlibExt.Analysis.Ramanujan.Part1Ch5.Entry10bEuleriansymmetry.chapter5EulerEven (n / 2) : ℤ) : ℚ)
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:84
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Theorem 5.
Uses 2
TheoremThe alternating Euler–Lucas double sum vanishes#●ready to prove
Let \(E_k\) be the Euler (secant) numbers, with exponential generating function \(2/(e^t + e^{-t})\), and let \(L_k\) be the Lucas numbers (\(L_0 = 2\), \(L_1 = 1\), \(L_{k+2} = L_{k+1} + L_k\)). For every natural number \(m \ge 1\),
The hypothesis \(m \ge 1\) is needed: for \(m = 0\) the sum is \(2\).
theorem_wanted sum_neg_one_pow_eulerSec_lucas (m : ℕ)
(hm : 1 ≤ m) :
∑ n ∈ Finset.range (m + 1), ∑ k ∈ Finset.range (n + 1),
(-1 : ℝ) ^ n * (Real.sqrt 5) ^ k / 2 ^ (k + m - n) *
(Nat.choose n k : ℝ) * (Nat.choose m n : ℝ) *
(eulerSecNumber k : ℝ) * (lucasNumber (n - k) : ℝ) = 0
noncomputable def eulerSecNumber (n : ℕ) : ℚ :=
if n % 2 = 1 then 0
else ((MathlibExt.Analysis.Ramanujan.Part1Ch5.Entry10bEuleriansymmetry.chapter5EulerEven (n / 2) : ℤ) : ℚ)
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:84
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 6.
Uses 2
TheoremA double sum of Euler and Lucas numbers equal to two#●ready to prove
Let \(L_n\) be the Lucas numbers and let \(E_k\) be the Euler (secant) numbers, given by \(2/(e^t + e^{-t}) = \sum_{k \ge 0} E_k t^k / k!\). For every natural number \(m\),
theorem_wanted sum_eulerSec_lucas (m : ℕ) :
∑ n ∈ Finset.range (m + 1), ∑ k ∈ Finset.range (n + 1),
(Real.sqrt 5) ^ k / 2 ^ (k + m - n) *
(Nat.choose n k : ℝ) * (Nat.choose m n : ℝ) *
(eulerSecNumber k : ℝ) * (lucasNumber (n - k) : ℝ) = 2
noncomputable def eulerSecNumber (n : ℕ) : ℚ :=
if n % 2 = 1 then 0
else ((MathlibExt.Analysis.Ramanujan.Part1Ch5.Entry10bEuleriansymmetry.chapter5EulerEven (n / 2) : ℤ) : ℚ)
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:84
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 7.
Uses 2
TheoremPowers of the golden ratio from Euler and Lucas numbers#●ready to prove
Let \(\alpha = (1 + \sqrt{5})/2\), let \(L_n\) be the Lucas numbers, and let \(E_k\) be the Euler (secant) numbers, given by \(2/(e^t + e^{-t}) = \sum_{k \ge 0} E_k t^k / k!\). For every natural number \(m\),
theorem_wanted sum_eulerSec_lucas_eq_two_fibAlpha_pow (m : ℕ) :
∑ n ∈ Finset.range (m + 1), ∑ k ∈ Finset.range (n + 1),
((Real.sqrt 5) / 2) ^ (k + m - n) *
(Nat.choose n k : ℝ) * (Nat.choose m n : ℝ) *
(eulerSecNumber k : ℝ) * (lucasNumber (n - k) : ℝ) =
2 * fibAlpha ^ m
noncomputable def eulerSecNumber (n : ℕ) : ℚ :=
if n % 2 = 1 then 0
else ((MathlibExt.Analysis.Ramanujan.Part1Ch5.Entry10bEuleriansymmetry.chapter5EulerEven (n / 2) : ℤ) : ℚ)
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:84
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
noncomputable def fibAlpha : ℝ := (1 + Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:75
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 8.
Uses 3
TheoremPowers of the conjugate golden ratio from Euler and Lucas numbers#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), let \(L_n\) be the Lucas numbers, and let \(E_k\) be the Euler (secant) numbers, given by \(2/(e^t + e^{-t}) = \sum_{k \ge 0} E_k t^k / k!\). For every natural number \(m\),
theorem_wanted sum_eulerSec_lucas_eq_two_fibBeta_pow (m : ℕ) :
∑ n ∈ Finset.range (m + 1), ∑ k ∈ Finset.range (n + 1),
(-1 : ℝ) ^ (m - n) * ((Real.sqrt 5) / 2) ^ (k + m - n) *
(Nat.choose n k : ℝ) * (Nat.choose m n : ℝ) *
(eulerSecNumber k : ℝ) * (lucasNumber (n - k) : ℝ) =
2 * fibBeta ^ m
noncomputable def eulerSecNumber (n : ℕ) : ℚ :=
if n % 2 = 1 then 0
else ((MathlibExt.Analysis.Ramanujan.Part1Ch5.Entry10bEuleriansymmetry.chapter5EulerEven (n / 2) : ℤ) : ℚ)
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:84
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 9.
Uses 3
TheoremA binomial sum of Euler and Lucas numbers#●ready to prove
Let \(L_n\) be the Lucas numbers and let \(E_k\) be the Euler (secant) numbers, given by \(2/(e^t + e^{-t}) = \sum_{k \ge 0} E_k t^k / k!\). For every natural number \(n\),
theorem_wanted sum_choose_eulerSec_lucas (n : ℕ) :
∑ k ∈ Finset.range (n + 1),
(Nat.choose n k : ℝ) * ((Real.sqrt 5) / 2) ^ k *
(eulerSecNumber k : ℝ) * (lucasNumber (n - k) : ℝ) =
2 / 2 ^ n
noncomputable def eulerSecNumber (n : ℕ) : ℚ :=
if n % 2 = 1 then 0
else ((MathlibExt.Analysis.Ramanujan.Part1Ch5.Entry10bEuleriansymmetry.chapter5EulerEven (n / 2) : ℤ) : ℚ)
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:84
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 10.
Uses 2
TheoremGenocchi–Lucas expansion of \((x + \beta)^m\)#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), and for every natural number \(n\) let
be the Genocchi–Lucas coefficient, where \(G_k\) are the Genocchi numbers and \(L_k\) the Lucas numbers. Then for every natural number \(m\) and every real number \(x\),
This corrects the paper's Theorem 11, whose inner sum omits the term \(2 \sqrt{5}^{\,n+1} G_{n+1}/(n+1)\); without it the identity already fails at \(m = 0\), giving \(0\) instead of \(1\).
theorem_wanted add_fibBeta_pow_eq_sum_genLucasCoeff (m : ℕ)
(x : ℝ) :
(x + fibBeta) ^ m =
(1 / (2 * Real.sqrt 5)) * ∑ n ∈ Finset.range (m + 1),
(Nat.choose m n : ℝ) * genLucasCoeff n * x ^ (m - n)
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
noncomputable def genLucasCoeff (n : ℕ) : ℝ :=
(∑ k ∈ Finset.range (n + 1), (Real.sqrt 5) ^ k *
(Nat.choose n k : ℝ) * (genocchiNumber k : ℝ) *
((lucasNumber (n - k + 1) : ℝ) / (n - k + 1 : ℕ))) +
2 * (Real.sqrt 5) ^ (n + 1) *
((genocchiNumber (n + 1) : ℝ) / (n + 1 : ℕ))
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:93
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Theorem 11.
Uses 2
TheoremA vanishing sum of the corrected Genocchi–Lucas coefficients#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), let \(G_k\) be the Genocchi numbers and \(L_n\) the Lucas numbers, and for each natural number \(n\) let
For every natural number \(m \ge 1\), \(\sum_{n=0}^{m} \binom{m}{n} c_n (-\beta)^{m-n} = 0\).
This is the case \(x = -\beta\) of the corrected Theorem 11. As printed, with \(\beta^{m-n}\) in place of \((-\beta)^{m-n}\) and without the last term of \(c_n\), the sum at \(m = 2\) is \(-10 + 4\sqrt{5}\).
theorem_wanted sum_genLucasCoeff_neg_fibBeta (m : ℕ)
(hm : 1 ≤ m) :
∑ n ∈ Finset.range (m + 1),
(Nat.choose m n : ℝ) * genLucasCoeff n *
(-fibBeta) ^ (m - n) = 0
noncomputable def genLucasCoeff (n : ℕ) : ℝ :=
(∑ k ∈ Finset.range (n + 1), (Real.sqrt 5) ^ k *
(Nat.choose n k : ℝ) * (genocchiNumber k : ℝ) *
((lucasNumber (n - k + 1) : ℝ) / (n - k + 1 : ℕ))) +
2 * (Real.sqrt 5) ^ (n + 1) *
((genocchiNumber (n + 1) : ℝ) / (n + 1 : ℕ))
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:93
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 12.
Uses 2
TheoremA weighted sum of the corrected Genocchi–Lucas coefficients#●ready to prove
Let \(G_k\) be the Genocchi numbers and \(L_n\) the Lucas numbers, and for each natural number \(n\) let
For every natural number \(m\),
Expanding \(c_n\) splits the left side into the paper's printed double sum \(\sum_{n,k} 2^n \sqrt{5}^{\,k-n} \binom{n}{k} \binom{m}{n} G_k \frac{L_{n-k+1}}{n-k+1}\) and a correction term; the printed double sum alone gives the right side only for odd \(m\) (at \(m = 2\) it is \(12\sqrt{5}/5\), not \(2\sqrt{5}/5\)).
theorem_wanted sum_genLucasCoeff_weighted (m : ℕ) :
∑ n ∈ Finset.range (m + 1),
(2 / Real.sqrt 5) ^ n * (Nat.choose m n : ℝ) *
genLucasCoeff n =
2 * Real.sqrt 5 / (Real.sqrt 5) ^ m
noncomputable def genLucasCoeff (n : ℕ) : ℝ :=
(∑ k ∈ Finset.range (n + 1), (Real.sqrt 5) ^ k *
(Nat.choose n k : ℝ) * (genocchiNumber k : ℝ) *
((lucasNumber (n - k + 1) : ℝ) / (n - k + 1 : ℕ))) +
2 * (Real.sqrt 5) ^ (n + 1) *
((genocchiNumber (n + 1) : ℝ) / (n + 1 : ℕ))
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:93
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 13.
Uses 1
TheoremGenocchi–Lucas sum for powers of the conjugate golden ratio#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), let \(G_k\) be the Genocchi numbers and let \(L_k\) be the Lucas numbers (\(L_0 = 2\), \(L_1 = 1\), \(L_{k+2} = L_{k+1} + L_k\)). For every natural number \(n\),
This is the paper's printed identity \(\sum_{k} (\sqrt{5})^{k-1} \cdots = 2 \beta^n\) multiplied by \(\sqrt{5}\), with the term \(2 (\sqrt{5})^{n+1} G_{n+1}/(n+1)\) restored. The printed form holds only for even \(n \ge 2\); at \(n = 1\) it gives \(1\) instead of \(2 \beta = 1 - \sqrt{5}\).
theorem_wanted sum_genocchi_lucas_add (n : ℕ) :
(∑ k ∈ Finset.range (n + 1), (Real.sqrt 5) ^ k *
(Nat.choose n k : ℝ) * (genocchiNumber k : ℝ) *
((lucasNumber (n - k + 1) : ℝ) / (n - k + 1 : ℕ))) +
2 * (Real.sqrt 5) ^ (n + 1) *
((genocchiNumber (n + 1) : ℝ) / (n + 1 : ℕ)) =
2 * Real.sqrt 5 * fibBeta ^ n
public noncomputable def genocchiNumber (n : ℕ) : ℚ :=
(n.factorial : ℚ) * (PowerSeries.coeff n) genocchiPowerSeries
MathlibExt/NumberTheory/GenocchiNumber.lean:45
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 14.
Uses 3
TheoremMultinomial Bernoulli–Fibonacci expansion of \((x + q\beta)^m\)#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), let \(B_k\) be the Bernoulli numbers with \(B_1 = -1/2\), and let \(F_k\) be the Fibonacci numbers. For every natural number \(q \ge 1\), every natural number \(m\) and every real number \(x\), the power \((x + q\beta)^m\) equals the sum, over \(0 \le n \le m\) and over all pairs of tuples of natural numbers \((j_1, \dots, j_q)\) and \((\ell_1, \dots, \ell_q)\) with \(j_1 + \dots + j_q + \ell_1 + \dots + \ell_q = n\), of
The coefficient is the full multinomial coefficient: the paper's displayed definition omits the factors \(\ell_i!\), and with them omitted the identity fails, for example at \(q = 2\), \(x = \sqrt{5}\), \(m = 2\).
MathlibExt.NumberTheory.FiniteSumsFibLucasWanted.add_mul_fibBeta_pow_eq_sum · 18 lines
theorem_wanted add_mul_fibBeta_pow_eq_sum (q m : ℕ)
(hq : 1 ≤ q) (x : ℝ) :
(x + q * fibBeta) ^ m =
∑ n ∈ Finset.range (m + 1),
∑ jℓ ∈ (Finset.univ :
Finset ((Fin q → Fin (n + 1)) ×
(Fin q → Fin (n + 1)))).filter
(fun jℓ => (∑ i, (jℓ.1 i).val) +
(∑ i, (jℓ.2 i).val) = n),
(Real.sqrt 5) ^ (∑ i, (jℓ.2 i).val) *
((n.factorial : ℝ) /
((∏ i, ((jℓ.1 i).val.factorial : ℝ)) *
∏ i, ((jℓ.2 i).val.factorial : ℝ))) *
(Nat.choose m n : ℝ) *
(∏ i, (bernoulli (jℓ.2 i).val : ℝ)) *
(∏ i, ((Nat.fib ((jℓ.1 i).val + 1) : ℝ) /
((jℓ.1 i).val + 1 : ℕ))) *
x ^ (m - n)
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Theorem 15.
Uses 1
TheoremA multinomial sum of Bernoulli and Fibonacci numbers equal to one#●ready to prove
Let \(F_n\) be the Fibonacci numbers and let \(B_k\) be the Bernoulli numbers, with \(B_1 = -\tfrac{1}{2}\). For every natural number \(m\),
where the inner sum runs over all quadruples \((j_1, j_2, \ell_1, \ell_2)\) of natural numbers with sum \(n\).
This is the case \(q = 2\), \(x = \sqrt{5}\) of Theorem 15, since \(\sqrt{5} + 2\beta = 1\) for \(\beta = (1 - \sqrt{5})/2\). The paper's displayed multinomial coefficient omits the factors \(\ell_1!\, \ell_2!\); with that coefficient the sum at \(m = 2\) is \(8/3\), not \(1\).
MathlibExt.NumberTheory.FiniteSumsFibLucasWanted.sum_bernoulli_fib_two_eq_one · 15 lines
theorem_wanted sum_bernoulli_fib_two_eq_one (m : ℕ) :
∑ n ∈ Finset.range (m + 1),
∑ jℓ ∈ (Finset.univ :
Finset ((Fin 2 → Fin (n + 1)) ×
(Fin 2 → Fin (n + 1)))).filter
(fun jℓ => (∑ i, (jℓ.1 i).val) +
(∑ i, (jℓ.2 i).val) = n),
(Real.sqrt 5) ^ ((∑ i, (jℓ.2 i).val) + m - n) *
((n.factorial : ℝ) /
((∏ i, ((jℓ.1 i).val.factorial : ℝ)) *
∏ i, ((jℓ.2 i).val.factorial : ℝ))) *
(Nat.choose m n : ℝ) *
(∏ i, (bernoulli (jℓ.2 i).val : ℝ)) *
(∏ i, ((Nat.fib ((jℓ.1 i).val + 1) : ℝ) /
((jℓ.1 i).val + 1 : ℕ))) = 1
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Corollary 17.
TheoremEuler–Lucas multinomial expansion of \((x + q/2)^m\)#●ready to prove
Let \(E_k\) be the Euler (secant) numbers, with exponential generating function \(2/(e^t + e^{-t})\), and let \(L_k\) be the Lucas numbers (\(L_0 = 2\), \(L_1 = 1\), \(L_{k+2} = L_{k+1} + L_k\)). For all natural numbers \(q \ge 1\) and \(m\) and every real number \(x\),
where the inner sum runs over all tuples \((j_1, \dots, j_q, \ell_1, \dots, \ell_q)\) of natural numbers with sum \(n\).
The coefficient is the full multinomial coefficient; the paper's displayed definition omits the factors \(\ell_i!\).
MathlibExt.NumberTheory.FiniteSumsFibLucasWanted.two_pow_mul_add_half_pow · 17 lines
theorem_wanted two_pow_mul_add_half_pow (q m : ℕ)
(hq : 1 ≤ q) (x : ℝ) :
(2 : ℝ) ^ q * (x + (q : ℝ) / 2) ^ m =
∑ n ∈ Finset.range (m + 1),
∑ jℓ ∈ (Finset.univ :
Finset ((Fin q → Fin (n + 1)) ×
(Fin q → Fin (n + 1)))).filter
(fun jℓ => (∑ i, (jℓ.1 i).val) +
(∑ i, (jℓ.2 i).val) = n),
((Real.sqrt 5) / 2) ^ (∑ i, (jℓ.2 i).val) *
((n.factorial : ℝ) /
((∏ i, ((jℓ.1 i).val.factorial : ℝ)) *
∏ i, ((jℓ.2 i).val.factorial : ℝ))) *
(Nat.choose m n : ℝ) *
(∏ i, (eulerSecNumber (jℓ.2 i).val : ℝ)) *
(∏ i, (lucasNumber (jℓ.1 i).val : ℝ)) *
x ^ (m - n)
noncomputable def eulerSecNumber (n : ℕ) : ℚ :=
if n % 2 = 1 then 0
else ((MathlibExt.Analysis.Ramanujan.Part1Ch5.Entry10bEuleriansymmetry.chapter5EulerEven (n / 2) : ℤ) : ℚ)
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:84
def lucasNumber : ℕ → ℕ
| 0 => 2
| 1 => 1
| n + 2 => lucasNumber (n + 1) + lucasNumber n
MathlibExt/NumberTheory/LucasSequence.lean:69
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Theorem 18.
Uses 2
TheoremMultinomial Genocchi–Lucas expansion of \((x + q\beta)^m\)#●ready to prove
Let \(\beta = (1 - \sqrt{5})/2\), let \(G_k\) be the Genocchi numbers and \(L_k\) the Lucas numbers, and for every natural number \(n\) let
be the Genocchi–Lucas coefficient. Then for every natural number \(q \ge 1\), every natural number \(m\) and every real number \(x\),
where the inner sum runs over all \(q\)-tuples \((j_1, \dots, j_q)\) of natural numbers with \(j_1 + \dots + j_q = n\).
This is the \(q\)-fold convolution form of the corrected Theorem 11, the Genocchi–Lucas expansion of \((x + \beta)^m\). As printed, with factors \(L_{n-j_i+1}/(n-j_i+1)\), the paper's displayed multinomial coefficient and no correction terms, the identity fails already at \(q = 1\).
theorem_wanted two_sqrt5_pow_mul_add (q m : ℕ) (hq : 1 ≤ q)
(x : ℝ) :
(2 * Real.sqrt 5) ^ q * (x + q * fibBeta) ^ m =
∑ n ∈ Finset.range (m + 1), (Nat.choose m n : ℝ) *
x ^ (m - n) *
∑ j ∈ (Finset.univ :
Finset (Fin q → Fin (n + 1))).filter
(fun j => ∑ i, (j i).val = n),
((n.factorial : ℝ) /
∏ i, ((j i).val.factorial : ℝ)) *
∏ i, genLucasCoeff (j i).val
noncomputable def fibBeta : ℝ := (1 - Real.sqrt 5) / 2
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:78
noncomputable def genLucasCoeff (n : ℕ) : ℝ :=
(∑ k ∈ Finset.range (n + 1), (Real.sqrt 5) ^ k *
(Nat.choose n k : ℝ) * (genocchiNumber k : ℝ) *
((lucasNumber (n - k + 1) : ℝ) / (n - k + 1 : ℕ))) +
2 * (Real.sqrt 5) ^ (n + 1) *
((genocchiNumber (n + 1) : ℝ) / (n + 1 : ℕ))
WantedExt/NumberTheory/FiniteSumsFibLucasWanted.lean:93
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Theorem 20.
Uses 2
TheoremIterated forward differences of a power as an alternating binomial sum#●ready to prove
For a real number \(r\), let \(\Delta_r\) be the forward difference operator with step \(r\), sending a function \(f : \mathbb{R} \to \mathbb{R}\) to \(y \mapsto f(y + r) - f(y)\), and let \(\Delta_r^k\) be its \(k\)-fold iterate (the identity when \(k = 0\)). For all real numbers \(r\) and \(x\) and all natural numbers \(k\) and \(n\), applying \(\Delta_r^k\) to the function \(y \mapsto y^n\) and evaluating at \(x\) gives \(\sum_{j=0}^{k} (-1)^{k-j} \binom{k}{j} (x + rj)^n\).
The paper states this for nonzero complex \(r\) and positive \(k\); here \(r\) is real and \(k = 0\) is allowed.
theorem_wanted iterate_forwardDiff_pow_eq_sum (r x : ℝ)
(k n : ℕ) :
((fun f : ℝ → ℝ => fun y => f (y + r) - f y)^[k]
(fun y => y ^ n)) x =
∑ j ∈ Finset.range (k + 1), (-1 : ℝ) ^ (k - j) *
(Nat.choose k j : ℝ) * (x + r * j) ^ n
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Lemma 21.
TheoremGenocchi numbers via Stirling numbers of the second kind#●ready to prove
For every natural number \(n \ge 1\), the Genocchi number \(G_n\) satisfies, in \(\mathbb{Q}\),
where \(S(n-1, j)\) are the Stirling numbers of the second kind.
theorem_wanted genocchiNumber_div_eq_sum (n : ℕ) (hn : 1 ≤ n) :
genocchiNumber n / (n : ℚ) =
∑ j ∈ Finset.range n, (-1 : ℚ) ^ j *
(j.factorial : ℚ) / 2 ^ j *
(Nat.stirlingSecond (n - 1) j : ℚ)
public noncomputable def genocchiNumber (n : ℕ) : ℚ :=
(n.factorial : ℚ) * (PowerSeries.coeff n) genocchiPowerSeries
MathlibExt/NumberTheory/GenocchiNumber.lean:45
Sources
- Fatima Zohra Bensaci, Rachid Boumahdi, and Laala Khaldi, "Finite Sums Involving Fibonacci and Lucas Numbers", Theorem 22.
Uses 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.