Title:Difference of digit sums in base 3 and base 2
Statement:"This sequence is positive on average, since 1/log(3) > 1/log(4). Do all integers appear infinitely often?" - Charles R Greathouse IV, Feb 07 2013
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.05074 [math.NT] · NS.05074v1 for this version |
| Declaration: | OeisA180017.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100; accepted critique: up to 100 |
| Statement hash: | 65b824eb479e967199dcef92a561d0ffd15a77dba67db5b9bd0101c7ba48f216 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/180017.lean |
Formal statement
theorem conjecture (z : ℤ) : Set.Infinite {n : ℕ | a n = z}Show the full Challenge.lean (60 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Difference of digit sums in base 3 and base 2
Difference of sums of digits of $n$ in ternary and in binary:
$$a(n) = \sum \mathrm{digits}_3(n) - \sum \mathrm{digits}_2(n).$$
*References:*
- [A180017](https://oeis.org/A180017)-/
@[expose] public section
namespace OeisA180017
/-- Difference of sums of digits of $n$ in ternary and in binary. -/
def a (n : ℕ) : ℤ :=
(Nat.digits 3 n).sum - (Nat.digits 2 n).sum
@[category test, AMS 11]
theorem a_0 : a 0 = 0 := by norm_num [a]
@[category test, AMS 11]
theorem a_1 : a 1 = 0 := by norm_num [a]
@[category test, AMS 11]
theorem a_2 : a 2 = 1 := by norm_num [a]
@[category test, AMS 11]
theorem a_3 : a 3 = -1 := by norm_num [a]
@[category test, AMS 11]
theorem a_4 : a 4 = 1 := by norm_num [a]
/--
"This sequence is positive on average, since 1/log(3) > 1/log(4). Do all integers appear
infinitely often?" - Charles R Greathouse IV, Feb 07 2013-/
@[category research open, AMS 11]
theorem conjecture (z : ℤ) : Set.Infinite {n : ℕ | a n = z} := by
sorry
end OeisA180017
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA180017.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 desk oeis-180017 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-180017 nosorry submit oeis-180017 nosorry/oeis-180017/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.