LiouvilleLambda
The Liouville function .
✓ checked against that system · ! checked, with disagreements (hover a chip)Fungrim
LiouvilleLambdaFungrim entrye4e707Wolfram LanguageLiouvilleLambda✓LiouvilleLambda(n)Julia
enumeratio_liouville(n)Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer) -> integer | number-theory | always |
Details
- Completely multiplicative: for every , not just coprime ones — unlike MoebiusMu.
- is 1 when is a perfect square and 0 otherwise.
Plot
Examples
Scope #
Properties #
, two factors with multiplicity
live ↗InOut
Known value · Wolfram MathematicalFunctionData, LiouvilleLambda
Two distinct primes multiply the signs to
live ↗InOut
Known value · Wolfram MathematicalFunctionData, LiouvilleLambda
About
| Examples | 20 |
|---|---|
| Checked against | Wolfram Language 20 agreeSageMath 17 agreeSymPy 17 agreemathlib4 16 agree2 errorJulia 17 agree |
| Crosswalk | FungrimFungrim entryWolfram LanguageJulia |
Implementation
mapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tsmapped
mathlib4packages/oracle/src/mappings.tsArithmeticFunction.liouville, (-1)^Omega(n), with lambda(0) = 0 by definition; natural n only.
See also: MoebiusMu, PrimeOmega