A214018: Least k >= 1, such that prime(n) + k has the form 2^m * q, m >= 0, where q >= 2 is prime.
Statement
By the definition, a(n)<=p(n+1)-pn. It is well known that, for large n, p(n+1)-pn on average is approximately log(n). What is the average behavior of a(n)? By the Broughan-Qizhi inequality, A192869(n)>>n*(log(n))^2. Besides, they conjecture that A192869(n)=O(n*(log(n))^2). But in the case of this sequence, we have, on average, log(n)/2 possible odd values of k< p(n+1)-pn. · Therefore, we conjecture that, on average, a(n) is approximately c*log(n) with c in (0,1). Calculations up to 10^6 (Peter J. C. Moses) show that, most likely, c < 0.53 (cf. comment in A213892).
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-a214018.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-a214018.lean
import Mathlib /-! # A214018: Least k >= 1, such that prime(n) + k has the form 2^m * q, m >= 0, where q >= 2 is prime. Source: https://oeis.org/A214018 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_a214018 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a214018