Is there any other way to write the function $f:\Bbb N\to\Bbb N$ such that $$f(x)=\begin{cases}p,&\text{if $x=p^k$}\\1,&\text{otherwise}\end{cases}$$ when $p$ is prime and $k\in\Bbb N$?
2026-04-05 20:41:09.1775421669
Notation without cases? $f(x)=\begin{cases}p,&\text{if $x=p^k$}\\1,&\text{otherwise}\end{cases}$
64 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
The von Mangoldt function $\Lambda(n)$ is well-known in number theory. It is $\ln p$ for $n$ a power of a prime $p$ and 0 otherwise, so your $f(x)=e^{\Lambda(x)}$. However it is normally only defined on the positive integers. So it is not so good if you want your function defined on the reals.