Left to Solve
Problems / MathOverflow (not formalized)

Are there infinitely many primes for which there exists a quadratic orthomorphism of the following kind?

Open, not yet stated in LeanMathOverflow (not formalized)Number TheoryCombinatoricsdifficulty55/100

Statement

For a prime , define . That is, if is a quadratic residue and is is a quadratic nonresidue. These quadratic maps are non-affine if .

I want to show that there are infinitely many primes for which there exists a permutation of given by non-affine quadratic map with the following three properties:

• The cycle type of is ,

• The cycle type of is , and

• The cycle type of is .

I can show that there are infinitely many such primes if we ignore 2 and 3. For that we just need quadratic non-residues such that the multiplicative order of is . The cyclic shifts seem much harder to handle.

The motivation comes from the following work on circular sorting: https://arxiv.org/abs/2510.18529, where we have computationally shown the existence of such maps for $p = 23, 31, 41, 59, 71, 83, 89, 97, 103, 113, 131, 137, 139, 149, 151, 157, 163, 173, 179, 181, 197, 199, 211, 223, 227, 239, 251, 257, 271, 283, 293, 307, 311, 331, 347, 349, 367, 379, …

Posed by Anurag · nt.number-theory, co.combinatorics, finite-fields

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

import Mathlib

/-!
# Are there infinitely many primes for which there exists a quadratic orthomorphism of the following kind?

Source: https://mathoverflow.net/questions/512244
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_512244

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

theorem main : sorry := by
  sorry

end OMA.S_mo_512244