A014442: Largest prime factor of n^2 + 1.
Statement
All a(n) except for a(1) = 2 are the Pythagorean primes, i.e., primes of form 4*k + 1. Conjecture: every Pythagorean prime appears in a(n) at least once. · From Michael Kaltman, Jun 10 2015: For all numbers k in A256011, a(k) < k. Conjecture: every Pythagorean prime p appears exactly two times among the first p integers of the sequence. Further: if a(i) = a(j) = p and both i and j are less than p (and i is not equal to j), then i + j = p and ij == 1 (mod p). [If a(k) = p as well, then k > p; in fact, k is in A256011.] Two examples: a(2) = a(3) = 5, with 2 + 3 = 5 and 2*3 = 6 == 1 (mod 5); a(4) = a(13) = 17, with 4 + 13 = 17 and 4*13 = 52 == 1 (mod 17). · The conjecture is true. If p is a Pythagorean prime, -1 is a quadratic residue mod p. Then -1 has exactly two square roots mod p, i.e., there are exactly two integers x,y with 1 <= x,y <= p-1 such that x^2 == y^2 == -1 (mod p), i.e., p d
Posed by Michael Kaltman, Robert Israel · 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-a014442.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-a014442.lean
import Mathlib /-! # A014442: Largest prime factor of n^2 + 1. Source: https://oeis.org/A014442 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_a014442 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a014442