Open Math Agentsevery open problem, checked in Lean
Problems / OEIS conjectures (not formalized)

A257534: Numbers n such that the decimal expansions of both n and n^2 have 4 as the digit with the smallest value and 7 as the digit with t

Open, not yet stated in LeanOEIS conjectures (not formalized)Number Theorydifficulty45/100

Statement

From Jon E. Schoenfield, Jun 28 2015: a(4) > 6.6666...*10^28, if it exists. Define a property P1 such that, for any positive integer k, P1(k) is true iff the smallest- and largest-valued digits of the decimal expansion of k are 4 and 7, respectively. This sequence lists the positive integers n such that both P1(n) and P1(n^2) are true. Define a less-restrictive property P2 such that, for any positive integer k, P2(k) is true iff the smallest- and largest-valued digits of the decimal expansion of k are at least 4 and at most 7, respectively. There exist only four positive integers n < 6.6666...*10^28, such that both P2(n) and P2(n^2) are true: a(1), a(2), a(3), and 76 (whose square, 5776, has minimum digit 5). Conjecture: a(4) does not exist.

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/oeis-a257534.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Text: OEIS Foundation, CC BY-SA 4.0. 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/oeis-a257534.lean

import Mathlib

/-!
# A257534: Numbers n such that the decimal expansions of both n and n^2 have 4 as the digit with the smallest value and 7 as the digit with t

Source: https://oeis.org/A257534
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_oeis_a257534

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_oeis_a257534