Statement:The forward direction: if for , then divides .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.04824 [math.NT] · NS.04824v1 for this version |
| Declaration: | OeisA1146.divisibility_fact |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 5b42e2223c47e9e14e0f32eed093cb3d8d32c0aeb6e9117640287d3f60d78d8c |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/1146.lean |
Formal statement
theorem divisibility_fact (n : ℕ) (hn : 2 ≤ n) : (((a n)^4 - 1) : ℕ) ∣ (2^(a n) - 1 : ℕ)Show the full Challenge.lean (96 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# $a(n) = 2^(2^n)$
*References:*
- [A001146](https://oeis.org/A001146)
-/
@[expose] public section
namespace OeisA1146
/--
The primary defining sequence `a`.
$a(n) = 2^{2^n}$.
-/
def a (n : ℕ) : ℕ := 2 ^ (2 ^ n)
@[category test, AMS 11]
theorem a_0 : a 0 = 2 := by rfl
@[category test, AMS 11]
theorem a_1 : a 1 = 4 := by rfl
@[category test, AMS 11]
theorem a_2 : a 2 = 16 := by rfl
@[category test, AMS 11]
theorem a_3 : a 3 = 256 := by rfl
@[category API, AMS 11]
lemma n_add_two_le_two_pow (n : ℕ) (hn : 2 ≤ n) : n + 2 ≤ 2 ^ n := by
induction' n, hn using Nat.le_induction with k hk ih
· decide
· calc
k + 1 + 2 = k + 2 + 1 := by omega
_ ≤ 2 ^ k + 1 := by exact Nat.add_le_add_right ih 1
_ ≤ 2 ^ k + 2 ^ k := by
apply Nat.add_le_add_left
apply Nat.one_le_pow'
_ = 2 ^ (k + 1) := by ring
/--
The forward direction: if $k = a(n)$ for $n \ge 2$, then $k^4 - 1$ divides $2^k - 1$.
-/
@[category research solved, AMS 11]
theorem divisibility_fact (n : ℕ) (hn : 2 ≤ n) : (((a n)^4 - 1) : ℕ) ∣ (2^(a n) - 1 : ℕ) := by
let m := 2 ^ (2 ^ n - (n + 2))
have h_exp : 2 ^ 2 ^ n = (2 ^ n * 4) * m := by
dsimp [m]
have h_four : 2 ^ n * 4 = 2 ^ (n + 2) := by
calc
2 ^ n * 4 = 2 ^ n * 2 ^ 2 := by rfl
_ = 2 ^ (n + 2) := by rw [← pow_add]
rw [h_four]
rw [← pow_add]
congr 1
exact (Nat.add_sub_cancel' (n_add_two_le_two_pow n hn)).symm
have H2 : 2 ^ a n = (a n ^ 4) ^ m := by
dsimp [a, m]
rw [← pow_mul, ← pow_mul]
rw [← mul_assoc]
congr 1
rw [H2]
exact Nat.sub_one_dvd_pow_sub_one (a n ^ 4) m
/--
I conjecture that { $a(n)$ ; $n>1$ } are the numbers such that $n^4-1$ divides $2^n-1$,
intersection of A247219 and A247165. - M. F. Hasler, Jul 25 2015
This formalizes the reverse direction.
-/
@[category research open, AMS 11]
theorem conjecture :
∀ k : ℕ, ((k^4 - 1) : ℕ) ∣ (2^k - 1 : ℕ) → k > 1 → ∃ n : ℕ, 2 ≤ n ∧ k = a n := by
sorry
end OeisA1146
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA1146.divisibility_fact with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_divisibility_fact : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-1146 nosorry submit oeis-1146 nosorry/oeis-1146/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- conjecture — open
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.