On the integer of the form p^a q^b closest to a given integer N
Statement
If we give ourselves a number having only one prime factor and a given natural integer , we know how to give the integer of the form closest (and less than) to this integer it's simple .
I tried to generalize this problem to the following question: If we are given two distinct prime numbers and , what is then the closest integer (and less than) of the form of a given integer ?
The inequality leads us to: .Generally speaking, the equation line defined with the abscissa and ordinate axes a triangular region of the plane which contains the set of integers and such that . It is therefore a question of finding the point with integer coordinates of this plane region which minimizes the (euclidean) distance to the line above.
The distance
The line intersects the x-axis at the point .
So the points with integer coordinates of this region of the plane take values in the set $E =\{0, ..., \lfloor - …
Posed by Azoth · nt.number-theory, real-analysis, 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-457470.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-457470.lean
import Mathlib /-! # On the integer of the form p^a q^b closest to a given integer N Source: https://mathoverflow.net/questions/457470 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_457470 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_457470