Is there a prime $q$ smaller than a given prime $p>5$ such that the inverse of $q$ modulo $p$ is an integer square?
Statement
Let be a prime. For each there is a unique with , and we call the inverse of modulo . In 2014 I investigated the set and found that it contains an integer square if . (See http://oeis.org/A242425 and http://oeis.org/A242441.) This led me to formulate the following conjecture.
Conjecture. For any prime , there is a prime such that the inverse of modulo is an integer square.
For example, the inverse of modulo is , the inverse of modulo is , and the inverse of modulo the prime is .
QUESTION. What tools in number theory are helpful to prove the above conjecture?
Posed by Zhi-Wei Sun · nt.number-theory, prime-numbers
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/mo-332255.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. 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/mo-332255.lean
import Mathlib /-! # Is there a prime $q$ smaller than a given prime $p>5$ such that the inverse of $q$ modulo $p$ is an integer square? Source: https://mathoverflow.net/questions/332255 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_mo_332255 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_332255