Talk:Möbius function

From Rosetta Code
Revision as of 22:12, 25 January 2020 by rosettacode>Gerard Schildberger (added a talk topic.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Möbius function for positive integers

This task says to write a function to     ... find the Möbius number for a positive integer   n.

But it is also apparently being used to find the Möbius number for zero, a non-positive number, as zero is apparently the 1st term as shown in the task's first written example's output.

Could/should it be stated:   ... find the Möbius number for a non-negative integer n     ?

Or, should solutions treat zero as a special case?     -- Gerard Schildberger (talk) 22:12, 25 January 2020 (UTC)