A331377: The areas of the triangles formed by joining three consecutive primes as vertices on the Ulam spiral.
Statement
Assuming the truth of the Legendre conjecture one can show all areas will be integer values. Consider that the area, A, of a triangle is given by half the magnitude of the cross product of the vectors from the second prime of the triple to the first and third primes, i.e., A = |x1*y2 - y1*x2|/2. Any two primes on the same vertical or horizontal line of the spiral will always be a multiple of two units apart, so either x1 = 2*k, y1 = 0, or x1 = 0, y1 = 2*k where k is an integer with |k| >= 0. Assuming the third prime is not on the same line then A will be an even number divided by 2, which is always an integer. The only possibility for A being a non-integer is for all three primes to lie on three different vertical and/or horizontal spiral lines. Note that only the lower-right corner of the spiral has an even number. Therefore if we start on any right vertical line moving counterclockwise
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-a331377.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-a331377.lean
import Mathlib /-! # A331377: The areas of the triangles formed by joining three consecutive primes as vertices on the Ulam spiral. Source: https://oeis.org/A331377 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_a331377 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a331377