Closeness of prime powers

96 Views Asked by At

For any integer $n$, denote by $pp(n)$ the smallest prime power greater or equal to $n$.

Bound $pp(n)-n$ from above.

Is $pp(n)-n=O(\log n)$, for instance?

1

There are 1 best solutions below

2
On

Notice that $pp(n) = P^2$, where $P$ denotes the smallest prime greater than $\sqrt n$. Let $\pi(P) =k$, hence $P \sim k\log k$ where $\pi$ is the prime counting function.Since we have $k> \sqrt n$, we have $$pp(n)=P^2 \sim k^2(\log k)^2 > \frac{1}{4}n(\log n)^2 $$

Hence $$ pp(n) -n = O(n(\log n)^2)$$

Notice that the error term $n(\log n)^2$ cannot be improved.