A395970: Lexicographically earliest sequence of nonprime terms such that a(n) shares a factor with exactly n other terms.
Statement
There appears to be no easy method of generating each a(n) other than choosing the earliest semiprime that satisfies the condition that it can share with n other terms while not violating the same criteria for all other terms it may share a factor with. To achieve this when a prime appears as a factor for the first time one must track the number of subsequent terms that must contain that as a factor so that a(n) can be satisfied. Each time that prime appears as a factor in subsequent terms that number is decremented; when it reaches zero no further terms can contain that prime as a factor. When a candidate semiprime is considered one must calculate the number of required terms still to come that must contain its primes as factors, and add to that the number of terms that have already appeared that contain these primes as factors. If that sum equals n then that implies the candidate semip
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-a395970.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-a395970.lean
import Mathlib /-! # A395970: Lexicographically earliest sequence of nonprime terms such that a(n) shares a factor with exactly n other terms. Source: https://oeis.org/A395970 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_a395970 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a395970