A006517: Integers with $n\mid 2^n+2$
Statement
The following question was asked at Math StackExchange but, having attracted some attention, didn't get solved.
Problem 323 from the Mathematical Excalibur Vol. 14, No. 2, May-Sep. 09, linked here (see page 3, where also a solution is given), reads:
Prove that there are infinitely many positive integers n such that is divisible by .
OEIS sequence A006517 lists the 27 smallest integers with :
All these numbers, with the exception of , are even. Indeed, Max Alekseyev has shown (see COMMENTS section) that this keeps to hold for larger terms, too: if and , then is even.
Yet another observation is that all numbers listed above are square-free. Does this hold in general?
Is it true that if , then is square-free?
As observed by the Math StackExchange user rtybase, if , then must be a Wieferich prime. The only two Wieferich primes presently …
Posed by W-t-P · 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-326123.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-326123.lean
import Mathlib /-! # A006517: Integers with $n\mid 2^n+2$ Source: https://mathoverflow.net/questions/326123 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_326123 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_326123