moebius
Compute the Möbius function mu(n) for a positive integer, used in number theory to detect squarefree numbers and prime factor parity.
Instructions
Compute the Möbius function mu(n).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Positive integer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |