Left to Solve
Problems / MathOverflow (not formalized)

Are there always at least *five* divisions?

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

Statement

@JosephO'Rourke asked a question about a Collatz like function related to primes:

$f(n) = \begin{cases} n^2 & \text{if} \;n \;\text{is prime} \\ \lfloor n/2 \rfloor & \text{if} \;n \;\text{is composite} \end{cases}$

@quid commented that (for prime ) "after a prime-induced increase there are (small exceptions aside) always at least four divisions as for ." (@TheMaskedAvenger also noted in a comment that " is , so there will be at least four halvings of for prime greater than .")

Question. For every prime , starting with , are there always at least five divisions , before we reach a prime again?

Let counts the number of divisions starting with before we reach a prime.

For example, if then , a prime, so (for 2 divisions).

If then , a prime, so (for 3 divisions).

When then , a prime, so (for 4 divisions).

In this notation, @quid's comment amounts to the statement, I think, that …

Posed by Mirko · nt.number-theory, ds.dynamical-systems, prime-numbers, computational-number-theory

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-206157.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-206157.lean

import Mathlib

/-!
# Are there always at least *five* divisions?

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

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

theorem main : sorry := by
  sorry

end OMA.S_mo_206157