Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Multiplicative order of 2 mod 2n+12n+1 · conjecture2

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

A generalization of the previous conjecture: For each k≥2k \ge 2, if pp is an odd prime then a((pk+1−1)/2)=p⋅a((pk−1)/2)a((p^{k+1}-1)/2) = p \cdot a((p^k-1)/2). Computer testing of this generalized conjecture shows that there is no counterexample for kk and pp both up to 1000.

The two are in fact equivalent. Its k=2k = 2 instance is conjecture1. Conversely, write d=ord⁡p2(2)d = \operatorname{ord}_{p^2}(2). conjecture1 for pp says vp(2d−1)=2v_p(2^d - 1) = 2, and lifting the exponent for the odd prime pp then gives vp(2dpt−1)=2+tv_p(2^{d p^t} - 1) = 2 + t, hence ord⁡p2+t(2)=dpt\operatorname{ord}_{p^{2+t}}(2) = d p^t for every t≥0t \ge 0, which is every instance for that pp.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.05602 [math.NT] · NS.05602v1 for this version
Declaration:OeisA2326.conjecture2
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:c15b7af40db61228f600a9ffbdabf3d1e751138b0b92b6f141e3cb6463eb5d4a
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/2326.lean

Formal statement

theorem conjecture2 (k : ℕ) (hk : 2 ≤ k) (p : ℕ) (hp : p.Prime) (hp_odd : p ≠ 2) :
    a ((p ^ (k + 1) - 1) / 2) = p * a ((p ^ k - 1) / 2)
Show the full Challenge.lean (101 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Multiplicative order of 2 mod $2n+1$

The multiplicative order of 2 modulo $2n+1$.
In other words, the least $m > 0$ such that $2n+1$ divides $2^m - 1$.

*References:*
- [A002326](https://oeis.org/A002326)-/

@[expose] public section

namespace OeisA2326

/-- The multiplicative order of 2 modulo $2n+1$. -/
noncomputable def a (n : ℕ) : ℕ :=
  orderOf (2 : ZMod (2 * n + 1))

/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by
  dsimp [a]
  exact Subsingleton.orderOf_eq (2 : ZMod 1)

/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by
  dsimp [a]
  rw [orderOf_eq_iff (by decide)]
  exact ⟨by decide, fun m hm1 hm2 ↦ by interval_cases m; decide⟩

/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 4 := by
  dsimp [a]
  rw [orderOf_eq_iff (by decide)]
  exact ⟨by decide, fun m hm1 hm2 ↦ by interval_cases m <;> decide⟩

/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 3 := by
  dsimp [a]
  rw [orderOf_eq_iff (by decide)]
  exact ⟨by decide, fun m hm1 hm2 ↦ by interval_cases m <;> decide⟩

/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 6 := by
  dsimp [a]
  rw [orderOf_eq_iff (by decide)]
  exact ⟨by decide, fun m hm1 hm2 ↦ by interval_cases m <;> decide⟩

/--
If $p$ is an odd prime then $a((p^3-1)/2) = p \cdot a((p^2-1)/2)$.
Because otherwise $a((p^3-1)/2) < p \cdot a((p^2-1)/2)$ iff $a((p^3-1)/2) = a((p-1)/2)$
for a prime $p$. Equivalently $p^3$ divides $2^{p-1}-1$, but no such prime $p$ is known.
- Thomas Ordowski, Feb 10 2014
-/
@[category research open, AMS 11]
theorem conjecture1 (p : ℕ) (hp : p.Prime) (hp_odd : p ≠ 2) :
    a ((p ^ 3 - 1) / 2) = p * a ((p ^ 2 - 1) / 2) := by
  sorry

/--
A generalization of the previous conjecture: For each $k \ge 2$, if $p$ is an odd prime
then $a((p^{k+1}-1)/2) = p \cdot a((p^k-1)/2)$.
Computer testing of this generalized conjecture shows that there is no counterexample for $k$
and $p$ both up to 1000.
- [Ahmad J. Masad](https://oeis.org/wiki/User:Ahmad_J._Masad), Oct 17 2020

The two are in fact equivalent. Its $k = 2$ instance is `conjecture1`. Conversely, write
$d = \operatorname{ord}_{p^2}(2)$. `conjecture1` for $p$ says
$v_p(2^d - 1) = 2$, and lifting the exponent for the odd prime $p$ then gives
$v_p(2^{d p^t} - 1) = 2 + t$, hence $\operatorname{ord}_{p^{2+t}}(2) = d p^t$ for every
$t \ge 0$, which is every instance for that $p$.
-/
@[category research open, AMS 11]
theorem conjecture2 (k : ℕ) (hk : 2 ≤ k) (p : ℕ) (hp : p.Prime) (hp_odd : p ≠ 2) :
    a ((p ^ (k + 1) - 1) / 2) = p * a ((p ^ k - 1) / 2) := by
  sorry

end OeisA2326

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA2326.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-2326--conjecture2
nosorry submit oeis-2326--conjecture2 nosorry/oeis-2326--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.