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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Ascending descending base exponent transform of 2n2^n · a_4

Source:OEIS conjectures
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

No informal statement.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.04787 [math.NT] · NS.04787v1 for this version
Declaration:OeisA113271.a_4
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:f625b7e07d3e094aec9d356ca0118b13b54e96f6195a7e27c439ca0af7e68ca8
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/113271.lean

Formal statement

theorem a_4 : a 4 = 593
Show the full Challenge.lean (85 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Ascending descending base exponent transform of $2^n$

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

@[expose] public section

namespace OeisA113271

/--
The primary defining sequence `a`.
$a(n)$ is the ascending descending base exponent transform of $2^n$.
$$a(n) = \sum_{i=0}^n 2^{i \cdot 2^{n-i}}$$
-/
def a (n : ℕ) : ℕ :=
  ∑ i ∈ Finset.range (n + 1), 2 ^ (i * 2 ^ (n - i))

@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by rfl

@[category test, AMS 11]
theorem a_1 : a 1 = 3 := by rfl

@[category test, AMS 11]
theorem a_2 : a 2 = 9 := by rfl

@[category test, AMS 11]
theorem a_3 : a 3 = 41 := by rfl

@[category test, AMS 11]
theorem a_4 : a 4 = 593 := by rfl

@[category test, AMS 11]
theorem a_4_prime : (a 4).Prime := by
  rw [a_4]
  norm_num

/-- The next term from the defining formula and the official OEIS b-file. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 135457 := by rfl

/-- The term `a(5) = 135457 = 7 * 37 * 523` is composite. -/
@[category test, AMS 11]
theorem a_5_not_prime : ¬ (a 5).Prime := by
  rw [a_5]
  norm_num

def conjecture1.answer : ℕ := sorry

/--
The first prime terms in this (always odd) sequence are $a(1) = 3$, $a(3) = 41$, and
$a(4) = 593$. What is the next prime?

The OEIS comment currently says `$a(5) = 543$`, but this conflicts with its defining formula,
b-file, and examples: the actual index-five term is the composite number `135457`. Consequently the
search for the next prime must begin after index `4`, not after index `5`.
-/
@[category research open, question value, AMS 11]
theorem conjecture1 :
  conjecture1.answer = a (sInf {n : ℕ | 4 < n ∧ (a n).Prime}) := by
  sorry

end OeisA113271

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA113271.a_4 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_4 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk oeis-113271--a-4      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-113271--a-4
nosorry submit oeis-113271--a-4 nosorry/oeis-113271--a-4/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.