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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Representations as p+2x+11⋅2yp + 2^x + 11 \cdot 2^y with p≡1(mod6)p \equiv 1 \pmod 6

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

On Feb. 24, 2009, Zhi-Wei Sun conjectured that a(n)=0a(n) = 0 if and only if n<16n < 16 or n∈{18,21,24,51,84,1011,59586}n \in \{18, 21, 24, 51, 84, 1011, 59586\}; in other words, except for 35,41,47,101,167,2021,11917135, 41, 47, 101, 167, 2021, 119171, any odd integer greater than 3030 can be written as the sum of a prime congruent to 1 mod 61 \bmod 6, a positive power of 22 and eleven times a positive power of 22.

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

Formal statement

theorem conjecture (n : ℕ) (hn : 0 < n) :
    a n = 0 ↔ n ≤ 15 ∨ n = 18 ∨ n = 21 ∨ n = 24 ∨ n = 51 ∨ n = 84 ∨ n = 1011 ∨ n = 59586
Show the full Challenge.lean (84 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Representations as $p + 2^x + 11 \cdot 2^y$ with $p \equiv 1 \pmod 6$

Number of ways to write the $n$-th positive odd integer in the form $p + 2^x + 11 \cdot 2^y$
with $p$ a prime congruent to $1 \bmod 6$ and $x, y$ positive integers.
$$a(n) = \left|\left\{(p, x, y) : p + 2^x + 11 \cdot 2^y = 2n - 1 \text{ with } p \text{ prime},
p \equiv 1 \pmod 6, x, y \in \mathbb{Z}^+\right\}\right|.$$

*References:*
- [A157237](https://oeis.org/A157237)
- Z.-W. Sun, "Mixed sums of primes and other terms", arXiv preprint
  [arXiv:0901.3075](https://arxiv.org/abs/0901.3075) [math.NT], 2009.-/

@[expose] public section

namespace OeisA157237

/-- Number of representations of $2n - 1$ as $p + 2^x + 11 \cdot 2^y$ with $p \equiv 1 \pmod 6$. -/
def a (n : ℕ) : ℕ :=
  if n = 0 then 0
  else
    let N := 2 * n - 1
    ∑ x ∈ Finset.Icc 1 N,
    ∑ y ∈ Finset.Icc 1 N,
      if 2 ^ x + 11 * 2 ^ y < N ∧
         (N - (2 ^ x + 11 * 2 ^ y)).Prime ∧
         (N - (2 ^ x + 11 * 2 ^ y)) % 6 = 1 then 1 else 0

/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by decide

/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 0 := by decide

/-- Value of the sequence `a` at 16. -/
@[category test, AMS 11]
theorem a_16 : a 16 = 1 := by decide

/-- Value of the sequence `a` at 17. -/
@[category test, AMS 11]
theorem a_17 : a 17 = 1 := by decide

/-- Value of the sequence `a` at 18. -/
@[category test, AMS 11]
theorem a_18 : a 18 = 0 := by decide

/-- Value of the sequence `a` at 19. -/
@[category test, AMS 11]
theorem a_19 : a 19 = 2 := by decide

/--
On Feb. 24, 2009, Zhi-Wei Sun conjectured that $a(n) = 0$ if and only if $n < 16$ or
$n \in \{18, 21, 24, 51, 84, 1011, 59586\}$; in other words, except for
$35, 41, 47, 101, 167, 2021, 119171$, any odd integer greater than $30$ can be written as the
sum of a prime congruent to $1 \bmod 6$, a positive power of $2$ and eleven times a positive
power of $2$.-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) (hn : 0 < n) :
    a n = 0 ↔ n ≤ 15 ∨ n = 18 ∨ n = 21 ∨ n = 24 ∨ n = 51 ∨ n = 84 ∨ n = 1011 ∨ n = 59586 := by
  sorry

end OeisA157237

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

nosorry fetch oeis-157237
nosorry submit oeis-157237 nosorry/oeis-157237/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.