feat(Wikipedia): asymptotic density of powerful numbers#3715
Open
joshuasteier wants to merge 1 commit intogoogle-deepmind:mainfrom
Open
feat(Wikipedia): asymptotic density of powerful numbers#3715joshuasteier wants to merge 1 commit intogoogle-deepmind:mainfrom
joshuasteier wants to merge 1 commit intogoogle-deepmind:mainfrom
Conversation
mo271
reviewed
Apr 12, 2026
Collaborator
mo271
left a comment
There was a problem hiding this comment.
thanks! some initial remarks..
Comment on lines
+43
to
+44
| def IsPowerful (n : ℕ) : Prop := | ||
| 0 < n ∧ ∀ p ∈ n.primeFactors, p ^ 2 ∣ n |
Collaborator
There was a problem hiding this comment.
Please re-use the already existing defintion for this: see
FormalConjecturesForMathlib/Data/Nat/Full.lean
Comment on lines
+22
to
+30
| A positive integer $n$ is *powerful* if for every prime $p$ dividing $n$, | ||
| we have $p^2 \mid n$. Equivalently, $n = a^2 b^3$ for some positive integers $a, b$. | ||
|
|
||
| Let $Q(x) = \#\{ n \leq x : n \text{ is powerful} \}$. Bateman and Grosswald (1958) showed | ||
| $$Q(x) = \frac{\zeta(3/2)}{\zeta(3)} x^{1/2} + \frac{\zeta(2/3)}{\zeta(2)} x^{1/3} + O(x^{1/6}).$$ | ||
|
|
||
| The leading constant is $\zeta(3/2)/\zeta(3) \approx 2.173$. | ||
| Note: the formula $\zeta(1/2)^{-1} \approx 0.3039$ cited in some sources is incorrect | ||
| ($\zeta(1/2) \approx -1.46$, so its reciprocal is negative). |
Collaborator
There was a problem hiding this comment.
let's avoid duplicating docstrings too much, its fine to keep it brief in the module docstring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3686
Formalizes the Bateman–Grosswald (1958) asymptotic Q(x) ~ c·x^(1/2) for powerful numbers.
Note: the issue's formula ζ(1/2)⁻¹ ≈ 0.3039 appears to be a transcription error —
ζ(1/2) ≈ −1.46, so its reciprocal is negative. The correct leading constant from
Bateman–Grosswald is ζ(3/2)/ζ(3) ≈ 2.173, noted in the docstring. Left as
answer(sorry)in the statement; happy to pin a specific form if preferred.