Title:Trajectory of 103 under the Reverse and Add! operation in base 3 · a_3
Statement:Value of the sequence
aat 3.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.06838 [math.NT] · NS.06838v1 for this version |
| Declaration: | OeisA77408.a_3 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| Statement hash: | 46336287e8be01a7c0cbbb062db6695c3f98a2740888dd897b2a0ba739bab94c |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/77408.lean |
Formal statement
theorem a_3 : a 3 = 776Show the full Challenge.lean (87 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Trajectory of 103 under the Reverse and Add! operation in base 3
The sequence $a(n)$ is the trajectory of $103$ under the Reverse and Add! operation carried out
in base $3$, written in base $10$.
$a(0) = 103$, and $a(n+1) = a(n) + \text{rev}_3(a(n))$.
*References:*
- [A077408](https://oeis.org/A077408)-/
@[expose] public section
namespace OeisA77408
/-- The number whose base-$b$ digits are the reversal of $n$'s base-$b$ digits. -/
def revBase (b n : ℕ) : ℕ :=
Nat.ofDigits b (Nat.digits b n).reverse
/-- A natural number $n$ is a base-$b$ palindrome if its base-$b$ digits read the same forwards
and backwards. -/
def IsBasePalindrome (b n : ℕ) : Prop :=
n = revBase b n
/-- Trajectory of 103 under the Reverse and Add! operation in base 3. -/
def a : ℕ → ℕ
| 0 => 103
| n + 1 => a n + revBase 3 (a n)
/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 103 := by
rfl
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 230 := by
decide +kernel
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 436 := by
decide +kernel
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 776 := by
decide +kernel
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 2424 := by
decide +kernel
/-- Value of the sequence `a` at 5. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 3856 := by
decide +kernel
/--
$103$ is conjectured to be the smallest number such that the Reverse and Add! algorithm in base $3$
does not lead to a palindrome. Its trajectory is conjectured to never reach a palindrome.-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) : ¬ IsBasePalindrome 3 (a n) := by
sorry
end OeisA77408
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA77408.a_3 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_3 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk oeis-77408--a-3 # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch oeis-77408--a-3 nosorry submit oeis-77408--a-3 nosorry/oeis-77408--a-3/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.