Title:Smallest such that is evil
Statement:Conjecture: there are only five () for which all entries of the -th Pascal row (A007318) are odious (A000069), which is equivalent to .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05906 [math.NT] · NS.05906v1 for this version |
| Declaration: | OeisA249609.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | f4eb55c0e190675cc8691f2981a89ef50abd8ccc6547878ab547e11065ab8bc2 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/249609.lean |
Formal statement
theorem conjecture (n : ℕ) :
a n = 0 ↔ n ∈ ({0, 1, 2, 7, 8} : Finset ℕ)Show the full Challenge.lean (69 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Smallest $m \in [1, n]$ such that $\binom{n}{m}$ is evil
The sequence $a(n)$ is the smallest $m$ with $1 \le m \le n$ such that $\binom{n}{m}$ is an evil
number (A001969, having an even number of $1$s in its binary expansion), or $0$ if no such $m$
exists.
*References:*
- [A249609](https://oeis.org/A249609)
-/
@[expose] public section
namespace OeisA249609
open Nat List
/-- Boolean check for whether a natural number is evil (even number of set bits in base $2$). -/
def isEvil (k : ℕ) : Bool :=
(Nat.digits 2 k).count 1 % 2 == 0
/-- Smallest $1 \le m \le n$ such that $\binom{n}{m}$ is evil,
or $0$ if no such $m$ exists. -/
def a (n : ℕ) : ℕ :=
((List.range' 1 n).find? fun m => isEvil (n.choose m)).getD 0
@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by decide
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by decide
@[category test, AMS 11]
theorem a_2 : a 2 = 0 := by decide
@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by decide
@[category test, AMS 11]
theorem a_4 : a 4 = 2 := by decide
/-- Conjecture: there are only five $n$ ($0, 1, 2, 7, 8$) for which all entries of the $n$-th
Pascal row (A007318) are odious (A000069), which is equivalent to $a(n) = 0$. -/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) :
a n = 0 ↔ n ∈ ({0, 1, 2, 7, 8} : Finset ℕ) := by
sorry
end OeisA249609
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA249609.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-249609 nosorry submit oeis-249609 nosorry/oeis-249609/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.