Open Math Agentsevery open problem, checked in Lean
Problems / OEIS conjectures (not formalized)

A338751: Primes p such that (p*s) mod q and (p*s) mod r are a pair of twin primes, where q,r,s are the next primes after p.

Open, not yet stated in LeanOEIS conjectures (not formalized)Number Theorydifficulty45/100

Statement

Let g1 = q-p, g2 = r-q, g3 = s-r be the gaps between the consecutive primes p,q,r,s. Then p*s = (q-g1)*(q+g2+g3) == -g1*(g2+g3) (mod q) and similarly p*s == -(g1+g2)*g3 (mod r). According to Cramer's conjecture, g1*(g2+g3) < q and (g1+g2)*g3 < r for all but finitely many p: the only exception in this sequence appears to be p=3. When g1*(g2+g3) < q and (g1+g2)*g3 < r we have ((p*s) mod r) - ((p*s) mod q) = (r - (g1+g2)*g3) - (q - g1*(g2+g3)) = g2*(g1-g3+1). This is 2 (allowing the possibility of twin primes) if g2 = 2 and g3 = g1.

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-a338751.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-a338751.lean

import Mathlib

/-!
# A338751: Primes p such that (p*s) mod q and (p*s) mod r are a pair of twin primes, where q,r,s are the next primes after p.

Source: https://oeis.org/A338751
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_a338751

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_oeis_a338751