Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Number Theory > Prime Numbers >
Mathematica > Mathematics and Algorithms > Mathematical Functions > Number Theoretic Functions > Prime Numbers >

LiouvilleLambda

LiouvilleLambda[n]
gives the Liouville function lambda(n).
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • For a number n=u p1k1CenterEllipsis pmkm with u a unit and pi primes, LiouvilleLambda[n] returns (-1)k1+CenterEllipsis+km.
Liouville's function gives (-1)^k where k is the number of prime factors counting multiplicity:
Plot the sequence:
Liouville's function gives (-1)^k where k is the number of prime factors counting multiplicity:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Plot the sequence:
In[1]:=
Click for copyable input
Out[1]=
Evaluate for large arguments:
LiouvilleLambda works over Gaussian integers:
Compute its Dirichlet transform:
LiouvilleLambda threads element-wise over lists:
LiouvilleLambda formatting:
Counting Gaussian integer prime factors:
LiouvilleLambda is completely multiplicative:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team