The Liouville Function #
This file defines the Liouville function λ(n).
Main Definitions #
ArithmeticFunction.liouvilleis the Liouville functionλ(n)defined to be1ifnhas an even number of prime factors (counting multiplicity) and-1otherwise.
The Liouville function λ(n) defined to be 1 if n has an even number of prime factors
(counting multiplicity) and -1 otherwise.
Equations
- ArithmeticFunction.liouville = { toFun := fun (n : ℕ) => if n = 0 then 0 else (-1) ^ ArithmeticFunction.cardFactors n, map_zero' := ArithmeticFunction.liouville._proof_1 }