A308376: Least positive integer k < prime(n) such that k + k' is a square, where k' is the unique integer with 0 < k < prime(n) and k*k' ==
Statement
Conjecture 1: a(n) = 0 only for n = 1, 3, 4, 5, 14, 22. In other words, if p is a prime not among 2, 5, 7, 11, 43, 79, then there are k and m among 1,...,p-1 with k*m == 1 (mod p) such that k + m is a square. · Conjecture 2: For any prime p > 18, there are k and m among 1,...,p-1 with k*m == 1 (mod p) such that k + m is a triangular number.
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-a308376.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-a308376.lean
import Mathlib /-! # A308376: Least positive integer k < prime(n) such that k + k' is a square, where k' is the unique integer with 0 < k < prime(n) and k*k' == Source: https://oeis.org/A308376 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_a308376 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a308376