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

A126114: Ultimate fixed-point under the mapping n->f(n), where f(n)=n if n is square else f(n)=n-Floor(Sqrt(n)).

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

Statement

Conjecture. Let t(k) be the largest triangular number t(k)=k(k+1)/2 such that 2t(k) is smaller than n and denote n-2t(k) by X. Then a(n)=X^2 if X<=k+1, else a(n)=(X-k-1)^2. (This has been verified for n=1,2,3,...,1000.) Illustration. For n=11, we find that 2t(2)=6<11 and 2t(3)=12>11, so that X=11-6=5 and k=2. X>k+1, so we get a(11)=(5-3)^2=4.

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-a126114.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-a126114.lean

import Mathlib

/-!
# A126114: Ultimate fixed-point under the mapping n->f(n), where f(n)=n if n is square else f(n)=n-Floor(Sqrt(n)).

Source: https://oeis.org/A126114
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_a126114

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

theorem main : sorry := by
  sorry

end OMA.S_oeis_a126114