A112730: Numbers k such that the equation sigma(x)-phi(x)=k has at least one solution.
Statement
It is conjectured that if n>2 then all solutions of the equation sigma(x)-phi(x)=n () are less than or equal to (n-1)^2/4 and 2 is the only number n such that the equation () has infinitely many solutions. In fact in the case n=2 prime numbers are all solutions of (*). All numbers of the form 2p+1 where p is prime are in the sequence because p^2 is a solution for the equation sigma(x)-phi(x)=2p+1. All numbers of the form 3*2^n-1 are in the sequence because 2^(n+1) is a solution for the equation sigma(x)-phi(x)=3*2^n-1 and etc. · The conjecture in the previous comment was established by Luke Pebody, see the Rivera link.
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-a112730.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-a112730.lean
import Mathlib /-! # A112730: Numbers k such that the equation sigma(x)-phi(x)=k has at least one solution. Source: https://oeis.org/A112730 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_a112730 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a112730