MoebiusMu
The Möbius function: 0 if n has a squared prime factor, else (-1)^(number of prime factors).
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Möbius functionMathWorldMoebiusFunctionWikidataQ205243Encyclopedia of MathematicsMöbius_functionDLMF27.2.E12FungrimMoebiusMuOEISA008683Wolfram LanguageMoebiusMu!MoebiusMu(n)the Möbius function .Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> integer | compute-engine | always |
(number | quadratic_integer, any*) -> integer | number-theoryreplaces compute-engine | always |
Details
- if has a squared prime factor; otherwise for distinct prime factors.
- by convention, the empty product.
- Underlies Möbius inversion: for every .
- is squarefree exactly when . See IsSquareFree.
- is only defined on positive integers; compute-engine leaves unevaluated.
Examples
1 more kept as data, checked against the oraclesScope #
Properties #
One prime factor, an odd count:
live ↗InOut
Known value · Wolfram MathematicalFunctionData, MoebiusMu
A cube contains a square factor, so
live ↗InOut
Known value · Wolfram MathematicalFunctionData, MoebiusMu
17 is prime, so its Möbius value is
live ↗InOut
Known value · Wolfram MathematicalFunctionData, MoebiusMu
Possible issues #
About
| Examples | 32 |
|---|---|
| Checked against | Wolfram Language 30 agree2 differSageMath 27 agree1 unevaluatedSymPy 26 agree2 errormathlib4 22 agree1 unevaluated5 errorOscar 5 agree1 differ4 errorJulia 26 agree2 error |
| Crosswalk | WikipediaMathWorldWikidataEncyclopedia of MathematicsDLMFFungrimOEISWolfram LanguageSageMathSymPyOscarJulia |
Implementation
mapped
wolframpackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
oscarpackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
mathlib4packages/oracle/src/mappings.ts See also: FactorInteger, IsSquareFree