A158460: Numbers k such that prime(k-1) + 5 is square and equal to prime(k+1) - 1.
Statement
Conjecture: If the condition holds, prime(k-1) and prime(k) are twin primes of the form 10m+1 and 10m+3. I.e., the last digits are 1 and 3. · This is so because prime(k-1)+5 square => possible ending digits of 0,1,4,5,6,9. To get ending digits for prime(k-1) we subtract 5 to get ending digits 5,6,9,0,1,4. So 1,9 are the only possible endings since 0,4,5,6 => prime(k-1) not prime, impossible. Now by the condition of equality, prime(k-1)+6 = prime(k+1). So if prime(k-1) ends in 9, prime(k-1)+6 ends in 5 => prime(k+1) not prime, impossible. Therefore prime(k-1) ends in 1 and by the condition of prime(k-1) and prime(k) being twin primes, prime(k) ends in 3. This sequence is a variation of the conjecture provided in the link.
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-a158460.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-a158460.lean
import Mathlib /-! # A158460: Numbers k such that prime(k-1) + 5 is square and equal to prime(k+1) - 1. Source: https://oeis.org/A158460 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_a158460 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a158460