MöbiusInversionsformel
The Möbius inversion formula is a fundamental result in number theory that relates a function to its sum over divisors. Specifically, if we have an arithmetic function $f(n)$ and define another function $g(n)$ as the sum of $f(d)$ over all positive divisors $d$ of $n$, then $g(n) = \sum_{d|n} f(d)$. The Möbius inversion formula states that if this relationship holds, then $f(n)$ can be recovered from $g(n)$ using the Möbius function $\mu(n)$ as follows: $f(n) = \sum_{d|n} \mu(d)g(d/n)$.
The Möbius function $\mu(n)$ is defined for positive integers $n$. It is equal to 1 if $n$
This formula is particularly useful for inverting sums involving multiplicative functions. For example, it can be