Documentation

FormalConjectures.ErdosProblems.«418»

Erdős Problem 418 #

References:

theorem Erdos418.erdos_418 :
True {x : | ∃ (n : ), n - n.totient = x}.Infinite

Are there infinitely many integers not of the form $n - \phi(n)$?

Asked by Erdős and Sierpiński. Numbers not of the form we call non-cototients.

Browkin and Schinzel [BrSc95] provided an affirmative answer to this question, proving that any integer of the shape $2^{k}\cdot 509203$ for $k\geq 1$ is a non-cototient.

This is discussed in problem B36 of Guy's collection [Gu04].

This was formalized in Lean by Alexeev using Aristotle.

theorem Erdos418.erdos_418.variants.conditional (goldbach : ∀ (n : ), 6 < nEven n∃ (p : ) (q : ), p q Nat.Prime p Nat.Prime q n = p + q) (m : ) (h : Odd m) :
∃ (n : ), m + n.totient = n

It follows from a slight strengthening of the Goldbach conjecture that every odd number can be written as $n - \phi(n)$. In particular, we assume that every even number greater than 6 can be written as the sum of two distinct primes, in contrast to the usual Goldbach conjecture that every even number greater than 2 can be written as the sum of two primes.

theorem Erdos418.erdos_418.variants.sigma :
∃ (S : Set ) (_ : S.HasPosDensity), S {x : | ∃ (n : ), (ArithmeticFunction.sigma 1) n - n = x}

Erdős [Er73b] has shown that a positive density set of natural numbers cannot be written as $\sigma(n)-n$ (numbers not of this form are called nonaliquot, or sometimes untouchable).

theorem Erdos418.erdos_418.variants.soln :
{x : | ∃ (k : ), 2 ^ (k + 1) * 509203 = x} {x : | ∃ (n : ), n - n.totient = x}

A solution to erdos_418 was shown by Browkin and Schinzel [BrSc95] by showing that any integer of the form $2^(k + 1)\cdot 509203$ is not of the form $n - \phi(n)$.

theorem Erdos418.erdos_418.variants.density :
True ∃ (S : Set ) (_ : S.HasPosDensity), S {x : | ∃ (n : ), n - n.totient = x}

It is open whether the set of non-cototients has positive density.