Number $f(x)$ whose representation in base 3 is the binary representation of $x$: when does $x$ divide $f(x)$?
Statement
For any natural number , let be the natural number whose representation in base 3 is the same as the binary representation of (for instance, because and ). Are there infinitely many such that is a multiple of ? What about the odd ones among them? Besides the numbers 1 and 49091, are there other natural numbers of the considered kind such that is odd (i.e. such that the binary representation of contains an odd number of 1's)?
An additional question (concerning a possible upper bound for the considered numbers): are there natural numbers greater than such that is a multiple of ? (An between and with the considered property is indicated in my comment of August 9, 2019; if the comment is not displayed correctly please look at https://store.fmi.uni-sofia.bg/fmi/logic/skordev/Aug-comments.pdf).
Some answers.
• An answer to the above additional question can be found in my third comment of November 25, 2019 (if the comment in question is not displayed correctly please look at the second of my later comments). A number greater than and having the property in …
Posed by Dimiter Skordev · nt.number-theory
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-334687.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-334687.lean
import Mathlib /-! # Number $f(x)$ whose representation in base 3 is the binary representation of $x$: when does $x$ divide $f(x)$? Source: https://mathoverflow.net/questions/334687 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_334687 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_334687