A001917: a(n) = (p-1)/x, where p = prime(n) and x = ord(2,p), the smallest positive integer such that 2^x == 1 (mod p).
Statement
From Vladimir Shevelev, May 26 2008: a(n) = A006694((pn-1)/2) where pn is the n-th odd prime. Conjecture: k*a(n) = A006694(((p_n)^k-1)/2). · This conjecture fails for k >= 2 exactly when pn is a Wieferich prime (A001220): At p183 = 1093, ord(2,1093^2) = ord(2,1093) = 364 gives A006694((1093^2-1)/2) = 3282, not 2*a(183) = 6; likewise at p_490 = 3511.
Posed by Andrew R. Epstein · OEIS nice
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-a001917.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-a001917.lean
import Mathlib /-! # A001917: a(n) = (p-1)/x, where p = prime(n) and x = ord(2,p), the smallest positive integer such that 2^x == 1 (mod p). Source: https://oeis.org/A001917 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_a001917 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a001917