Documentation

Sequencelib.Moebius

The Möbius function #

The Möbius function is defined by

$$ \mu(n) = \begin{cases} 1, & \text{if}\ n = 1, \\ (-1)^k, & \text{if}\ n\ \text{is the product of}\ k\ \text{distinct primes,} \\ 0, & \text{if}\ n\ \text{is divisible by a square}\ > 1. \end{cases} $$

OEIS Identifier

Equations
Instances For

    OEIS sequence offset

    Equations
    Instances For