Left to Solve
Problems / MathOverflow (not formalized)

Iteration of a primeness-measuring function

Open, not yet stated in LeanMathOverflow (not formalized)Number Theorydifficulty55/100

Statement

Question

For let denote the cardinality of the set Let denote the sequence obtained by iterating the map on , so that e.g. and . The following questions concern the asymptotic behavior of the sequences .

• What is the least such that ?

• Can we find such that is periodic?

Notice that the density of pairs such that divides but fails to divide and measures how far away is from being prime. This density is just . The sequence is A268631.

Observations

The maps and preserve membership in the set involved in the definition of , and fix only . Thus, the quantity is congruent to modulo precisely if divides . Otherwise, is congruent to modulo . This provides a partial answer …

Posed by Z. A. K. · 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-357963.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-357963.lean

import Mathlib

/-!
# Iteration of a primeness-measuring function

Source: https://mathoverflow.net/questions/357963
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_357963

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_357963