Is there a fast way to find median divisors of a number?
Statement
Example: 72 has the following divisors: 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72. The median (middle) divisors are 8 and 9. Provided we already have the prime factors of a number x, what would be an algorithm to find these two divisors? What would be the complexity of that algorithm? x would typically be a number with lots of prime factors, e.g. "Highly composite numbers".
Posed by rotatingmind · nt.number-theory, prime-numbers, factorization, divisors-multiples
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-496652.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-496652.lean
import Mathlib /-! # Is there a fast way to find median divisors of a number? Source: https://mathoverflow.net/questions/496652 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_496652 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_496652