Möbius function (moebius_mu)
Moebius function: 0 if a square divides n, else 1 or -1 by the parity of its prime factors.
How to write it
moebius_mu(n)
- n
- A whole number. Takes a whole number.
Examples
moebius_mu(30)In the solver,
Open in the solvermoebius_mu(30)gives-1.
Related functions
- multinomial
Multinomial coefficient: the ways to split n items into groups of the given sizes.
- modular_inverse
The inverse of a whole number modulo another.
- multiplicative_order
The least power of a number that is 1 modulo another.
- lucas_l
The n-th Lucas number.
- next_prime
The least prime greater than a number.
- jacobi_symbol
Jacobi symbol (a/n), for an odd positive n.