A145300: a(n) is the maximal prime such that if pn is the n-th prime then ceiling(sqrt(a(n)*pn))^2 - a(n)*p_n is a perfect square.
Statement
Or a(n) is the maximal prime qn > pn such that sqrt(qn)-sqrt(pn) < sqrt(2) [or (pn+qn)/2 < sqrt(pn*qn)+1]. I conjecture that lim{n->infinity} (sqrt(qn) - sqrt(pn)) = sqrt(2). Note that in the considered case this conjecture is equivalent to the following: lim{n->infinity} fract(sqrt(pn*qn)) = 0, where fract(x) denotes the fractional part of x.
Posed by Vladimir Shevelev · OEIS
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-a145300.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-a145300.lean
import Mathlib /-! # A145300: a(n) is the maximal prime such that if pn is the n-th prime then ceiling(sqrt(a(n)*pn))^2 - a(n)*p_n is a perfect square. Source: https://oeis.org/A145300 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_a145300 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a145300