Title:Denominators of coefficients in Stirling's expansion for · conjecture2
Statement:Conjecture II: if is prime, then , and are multiples of 6.
- Lorenzo Sauras Altuzarra, Oct 13 2020
This is false for .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.06559 [math.NT] · NS.06559v1 for this version |
| Declaration: | OeisA46969.conjecture2 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 0ec066f19fb83f401b9ff7500a9ed177084764763b836c5a1821d7daf9594f77 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/46969.lean |
Formal statement
theorem conjecture2 :
¬ ∀ (n : ℕ), 2 ≤ n → 12 ∣ a n → Nat.Prime (a n / 12) →
12 ∣ a (n - 1) → 12 ∣ a (n + 2) →
6 ∣ ((a (n - 1) / 12 : ℤ) - (n - 1 : ℤ)) ∧
6 ∣ ((a n / 12 : ℤ) - (n : ℤ)) ∧
6 ∣ ((a (n + 2) / 12 : ℤ) - (n + 2 : ℤ))Show the full Challenge.lean (148 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Denominators of coefficients in Stirling's expansion for $\log(\Gamma(z))$
The $n$-th term is the denominator of $\frac{B_{2n}}{2n(2n-1)}$ where $B_{2n}$ is the $2n$-th
Bernoulli number.
*References:*
- [A046969](https://oeis.org/A046969)-/
@[expose] public section
namespace OeisA46969
/-- Denominators of coefficients in Stirling's expansion for $\log(\Gamma(z))$. -/
def a (n : ℕ) : ℕ :=
if n = 0 then 0
else
let m := 2 * n
let k := m * (m - 1)
(bernoulli m / (k : ℚ)).den
@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by rfl
@[category test, AMS 11]
theorem a_1 : a 1 = 12 := by
dsimp [a]
rw [bernoulli_two]
norm_num
@[category test, AMS 11]
theorem a_2 : a 2 = 360 := by
dsimp [a]
rw [bernoulli_eq_bernoulli'_of_ne_one (by decide), bernoulli'_four]
norm_num
@[category API, AMS 11]
lemma bernoulli'_six : bernoulli' 6 = 1 / 42 := by
have hchoose2 : Nat.choose 6 2 = 15 := by decide
have hchoose3 : Nat.choose 6 3 = 20 := by decide
have hchoose4 : Nat.choose 6 4 = 15 := by decide
have h5 : bernoulli' 5 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)
rw [bernoulli'_def]
norm_num [Finset.sum_range_succ, Finset.sum_range_zero, bernoulli'_two, bernoulli'_three,
bernoulli'_four, h5, hchoose2, hchoose3, hchoose4]
@[category test, AMS 11]
theorem a_3 : a 3 = 1260 := by
dsimp [a]
rw [bernoulli_eq_bernoulli'_of_ne_one (by decide), bernoulli'_six]
norm_num
@[category API, AMS 11]
lemma bernoulli'_eight : bernoulli' 8 = -1 / 30 := by
have hchoose2 : Nat.choose 8 2 = 28 := by decide
have hchoose3 : Nat.choose 8 3 = 56 := by decide
have hchoose4 : Nat.choose 8 4 = 70 := by decide
have hchoose5 : Nat.choose 8 5 = 56 := by decide
have hchoose6 : Nat.choose 8 6 = 28 := by decide
have h3 : bernoulli' 3 = 0 := bernoulli'_three
have h5 : bernoulli' 5 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)
have h7 : bernoulli' 7 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)
rw [bernoulli'_def]
norm_num [Finset.sum_range_succ, Finset.sum_range_zero, bernoulli'_two, h3,
bernoulli'_four, h5, bernoulli'_six, h7,
hchoose2, hchoose3, hchoose4, hchoose5, hchoose6]
@[category test, AMS 11]
theorem a_4 : a 4 = 1680 := by
dsimp [a]
rw [bernoulli_eq_bernoulli'_of_ne_one (by decide), bernoulli'_eight]
norm_num
@[category API, AMS 11]
lemma bernoulli'_ten : bernoulli' 10 = 5 / 66 := by
have hchoose2 : Nat.choose 10 2 = 45 := by decide
have hchoose3 : Nat.choose 10 3 = 120 := by decide
have hchoose4 : Nat.choose 10 4 = 210 := by decide
have hchoose5 : Nat.choose 10 5 = 252 := by decide
have hchoose6 : Nat.choose 10 6 = 210 := by decide
have hchoose7 : Nat.choose 10 7 = 120 := by decide
have hchoose8 : Nat.choose 10 8 = 45 := by decide
have h3 : bernoulli' 3 = 0 := bernoulli'_three
have h5 : bernoulli' 5 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)
have h7 : bernoulli' 7 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)
have h9 : bernoulli' 9 = 0 := bernoulli'_eq_zero_of_odd (by decide) (by decide)
rw [bernoulli'_def]
norm_num [Finset.sum_range_succ, Finset.sum_range_zero, bernoulli'_two, h3,
bernoulli'_four, h5, bernoulli'_six, h7, bernoulli'_eight, h9,
hchoose2, hchoose3, hchoose4, hchoose5, hchoose6, hchoose7, hchoose8]
@[category test, AMS 11]
theorem a_5 : a 5 = 1188 := by
dsimp [a]
rw [bernoulli_eq_bernoulli'_of_ne_one (by decide), bernoulli'_ten]
norm_num
/--
Conjecture I: if $n > 2$, then $\frac{a(\text{A005382}(n))}{12}$ is prime,
where A005382 is the sequence of primes $p$ such that $2p-1$ is also prime.
Since $\text{A005382}(1) = 2$, $\text{A005382}(2) = 3$ and $\text{A005382}(3) = 7$, this says
that $\frac{a(p)}{12}$ is prime for every prime $p > 3$ such that $2p-1$ is also prime.
- Lorenzo Sauras Altuzarra, Oct 13 2020
-/
@[category research open, AMS 11]
theorem conjecture1 (p : ℕ) (hp : p.Prime) (hp' : (2 * p - 1).Prime) (h3 : 3 < p) :
(a p / 12).Prime := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
Conjecture II: if $\frac{a(n)}{12}$ is prime, then $\frac{a(n-1)}{12} - (n-1)$,
$\frac{a(n)}{12} - n$ and $\frac{a(n+2)}{12} - (n+2)$ are multiples of 6.
- Lorenzo Sauras Altuzarra, Oct 13 2020
This is false for $n = 236791$.
-/
@[category research solved, AMS 11,
formal_proof using lean4 at "https://github.com/epoch-research/LeanOpenProblems-results/blob/f02efd9a8c5fc6a735d2a90c33e24f7278ce0ffc/runs/oeis-full-50usd-ant-j0j0g4uzligm1k41/oeis_a046969_conjecture_2/Submission/Spec.lean#L845"]
theorem conjecture2 :
¬ ∀ (n : ℕ), 2 ≤ n → 12 ∣ a n → Nat.Prime (a n / 12) →
12 ∣ a (n - 1) → 12 ∣ a (n + 2) →
6 ∣ ((a (n - 1) / 12 : ℤ) - (n - 1 : ℤ)) ∧
6 ∣ ((a n / 12 : ℤ) - (n : ℤ)) ∧
6 ∣ ((a (n + 2) / 12 : ℤ) - (n + 2 : ℤ)) := by
sorry
end OeisA46969
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA46969.conjecture2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-46969--conjecture2 nosorry submit oeis-46969--conjecture2 nosorry/oeis-46969--conjecture2/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.