Title:Representations as with · a_16
Statement:Value of the sequence
aat 16.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.04967 [math.NT] · NS.04967v1 for this version |
| Declaration: | OeisA157237.a_16 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| 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 a_16 : a 16 = 1Show 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.a_16 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_16 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk oeis-157237--a-16 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-157237--a-16 nosorry submit oeis-157237--a-16 nosorry/oeis-157237--a-16/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.