Title:Odd part of the digital sum of divided by the maximal power of
Statement:Conjecture: Consider the sequence such that , , and for , . If we apply the Eratosthenes-like sieve to and remove s, then we obtain a sequence of primes.
- Vladimir Shevelev, Dec 12 2014
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05912 [math.NT] · NS.05912v1 for this version |
| Declaration: | OeisA250131.conjecture_1 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | a6d9525003963dadf84f368cd63c12b0bcddf025366a9cad7b1dd62e1483054d |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/250131.lean |
Formal statement
theorem conjecture_1 : ∀ n ∈ sievedIndices, (b n).PrimeShow the full Challenge.lean (99 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Odd part of the digital sum of $3^n$ divided by the maximal power of $3$
The sequence $a(n)$ is the odd part of the base-$10$ digital sum of $3^n$ divided by the maximal
possible power of $3$.
*References:*
- [A250131](https://oeis.org/A250131)
-/
@[expose] public section
namespace OeisA250131
open Nat
/-- The odd part of the digital sum of $3^n$ divided by the maximal possible power of $3$. -/
def a (n : ℕ) : ℕ :=
let d := (Nat.digits 10 (3 ^ n)).sum
let v3 := padicValNat 3 d
let v2 := padicValNat 2 d
d / (3 ^ v3 * 2 ^ v2)
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by decide +kernel
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by decide +kernel
@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by decide +kernel
@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by decide +kernel
@[category test, AMS 11]
theorem a_14 : a 14 = 5 := by decide +kernel
/-- Auxiliary sequence $b(n)$ related to A250131: $b(1)=2$, $b(2)=3$, and $b(n)=a(n-2)$ for
$n \ge 3$. -/
def b (n : ℕ) : ℕ :=
match n with
| 0 => 0
| 1 => 2
| 2 => 3
| n' + 3 => a (n' + 1)
/-- The set of indices $n \ge 1$ such that $b(n) \ne 1$ and $b(n)$ is not a multiple of any $b(k)$
for $1 \le k < n$ where $b(k) \ne 1$. This formalizes the Eratosthenes-like sieve applied to $b(n)$
after removing $1$s. -/
def sievedIndices : Set ℕ :=
{ n | 1 ≤ n ∧ b n ≠ 1 ∧ ∀ k, (1 ≤ k ∧ k < n ∧ b k ≠ 1) → ¬ (b k ∣ b n) }
/--
Conjecture: Consider the sequence $b(n)$ such that $b(1)=2$, $b(2)=3$, and for $n \ge 3$,
$b(n)=a(n-2)$. If we apply the Eratosthenes-like sieve to $b(n)$ and remove $1$s, then we obtain
a sequence of primes.
- _Vladimir Shevelev_, Dec 12 2014
-/
@[category research open, AMS 11]
theorem conjecture_1 : ∀ n ∈ sievedIndices, (b n).Prime := by
sorry
/--
Stronger variant: the sieved sequence $b(n)$ yields the set of all primes (in some perturbed
order).
Note: This stronger statement is not explicitly written on the [A250131](https://oeis.org/A250131)
OEIS page (which only states `conjecture_1` and notes via _Peter J. C. Moses_ that "these primes
follow with some perturbation of order"), but is implied by prepending $b(1)=2, b(2)=3$ (which
otherwise have no effect on the sieve since $\gcd(a(n), 6) = 1$) and by _Vladimir Shevelev_'s
analogous conjecture in the cross-referenced entries [A221858](https://oeis.org/A221858) and
[A225039](https://oeis.org/A225039).
-/
@[category research open, AMS 11]
theorem conjecture_2 : b '' sievedIndices = {p : ℕ | p.Prime} := by
sorry
end OeisA250131
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA250131.conjecture_1 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture_1 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-250131 nosorry submit oeis-250131 nosorry/oeis-250131/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- conjecture-2 — 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.