A208494: Least integer m>1 such that those k! mod m with k=1,...,n are pairwise distinct.
Statement
On Feb 27 2012 Zhi-Wei Sun conjectured that a(n) is a prime with the only exception a(5)=10, and that a(n) does not exceed n^2/2 for all n=2,3,4,... He also conjectured that max{n>0: 1!,...,n! are pairwise incongruent mod p} is asymptotically equivalent to sqrt(p), where p is an odd prime. · He guessed that if we replace k! in the definition of a(n) by (-1)^k*k! then a(n) is a prime with the only exception a(3)=6. If we replace k! in the definition of a(n) by (2k)! or (-1)^k*(2k)!, then Zhi-Wei Sun conjectured that a(n) will take only prime values. · He also has similar conjectures involving (r*k)! or (-1)^k*(r*k)! with r>2.
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-a208494.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-a208494.lean
import Mathlib /-! # A208494: Least integer m>1 such that those k! mod m with k=1,...,n are pairwise distinct. Source: https://oeis.org/A208494 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_a208494 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a208494