{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nThe Liouville function $\\lambda$ is the arithmetic function given by $\\lambda(n) = (-1)^{\\Omega(n)}$ for each positive integer $n$.\nHere $\\Omega(n)$ is the [[number of prime factors of n counted with multiplicity|08420828EY]].\n\n## Remarks\n\nFor example, $\\lambda(1) = 1$, $\\lambda(12) = -1$ and $\\lambda(36) = 1$.\nThe function $\\lambda$ is [[completely multiplicative|0GS27TKF1V]], since $\\Omega$ is completely additive.\nThe sum $\\sum_{d \\mid n} \\lambda(d)$ is $1$ if $n$ is a perfect square, and $0$ otherwise.\nOn squarefree integers, $\\lambda$ agrees with the [[Möbius function|0C8QENHYZW]].\n\n## Explanations\n\n### L1 human\n\nThe Liouville function is $1$ when $n$ has an even number of prime factors, counted with repeats, and $-1$ when the number is odd.\nUnlike the Möbius function, it is never $0$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "07NN4VNYWM",
    "kind": "definition",
    "msc": [
      "11A25"
    ],
    "name": "Liouville function",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Liouville_function"
      }
    ],
    "tag": "08RQAPXF1T",
    "uses": [
      "08420828EY"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/08RQAPXF1T/",
  "links": [
    {
      "field": "defines",
      "target": "07NN4VNYWM"
    },
    {
      "field": "uses",
      "target": "08420828EY"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/08RQAPXF1T.md",
  "msc": [
    "11A25"
  ],
  "name": "Liouville function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/08R/08RQAPXF1T.md",
  "status": null,
  "tag": "08RQAPXF1T",
  "uri": "m2://08RQAPXF1T",
  "url": "https://math2.tamnd.com/wiki/liouville-function-definition/",
  "writing": {
    "tag": "08RQAPXF1T",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
