Möbius function: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
m →‎{{header|Perl 6}}: Whitespace twiddles
Thundergnat (talk | contribs)
m Clarify wording
Line 5:
There are several ways to implement a Möbius function.
 
A fairly straightforward onemethod is to find the prime factors of a positive integer '''n''', andthen define '''μ(n)''' as the sum of the primitive nth roots of unityfactors. It has valuesthe invalues '''{−1, 0, 1}''' depending on the factorization of '''n''' into prime factors:
 
:* '''μ(n) = 1''' if '''n''' is a square-free positive integer with an '''even''' number of prime factors.