Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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)=−1\displaystyle \operatorname{moebius\_mu}(30) = -1
    moebius_mu(30)

    In the solver, moebius_mu(30) gives -1.

    Open in the solver