{
  "aliases": [
    "little-omega-function"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "0C8QENHYZW"
    }
  ],
  "body": "\n## Definition\n\nFor a positive integer $n$, $\\omega(n)$ is the number of distinct [[prime numbers|0SN0MAEKYX]] that divide $n$.\nSo if $n = p_1^{e_1} \\cdots p_k^{e_k}$ with distinct primes $p_i$ and $e_i \\ge 1$, then $\\omega(n) = k$.\n\n## Remarks\n\nFor example, $\\omega(1) = 0$, $\\omega(12) = 2$ and $\\omega(30) = 3$.\nThe function $\\omega$ is additive: $\\omega(mn) = \\omega(m) + \\omega(n)$ for coprime $m$ and $n$.\nCompare with the [[number of prime factors with multiplicity|08420828EY]] $\\Omega(n)$. We have $\\omega(n) \\le \\Omega(n)$, with equality exactly for squarefree $n$.\n\n## Explanations\n\n### L1 human\n\nThe function $\\omega(n)$ counts the different primes in $n$ and ignores repeats.\nFor $360 = 2^3 \\cdot 3^2 \\cdot 5$, the different primes are $2$, $3$ and $5$, so $\\omega(360) = 3$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "little-omega-function"
    ],
    "defines": "08RQ62VAVA",
    "kind": "definition",
    "msc": [
      "11A25"
    ],
    "name": "Number of distinct prime factors",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Prime_omega_function"
      }
    ],
    "tag": "0YVVXT3A0B",
    "uses": [
      "0SN0MAEKYX",
      "0H2EPRZC0D"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0YVVXT3A0B/",
  "links": [
    {
      "field": "defines",
      "target": "08RQ62VAVA"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    },
    {
      "field": "uses",
      "target": "0H2EPRZC0D"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0YVVXT3A0B.md",
  "msc": [
    "11A25"
  ],
  "name": "Number of distinct prime factors",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0YV/0YVVXT3A0B.md",
  "status": null,
  "tag": "0YVVXT3A0B",
  "uri": "m2://0YVVXT3A0B",
  "url": "https://math2.tamnd.com/wiki/number-of-distinct-prime-factors-definition/",
  "writing": {
    "tag": "0YVVXT3A0B",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
