{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $A$ be a set of positive integers.\nFor each integer $n \\ge 1$, let $A(n)$ be the number of elements $a \\in A$ with $a \\le n$.\nIf the [[limit|05M5SWSZZD]]\n$$d(A) = \\lim_{n \\to \\infty} \\frac{A(n)}{n}$$\nexists, then $d(A)$ is the *natural density* (or *asymptotic density*) of $A$.\nThe *upper density* $\\overline{d}(A)$ and the *lower density* $\\underline{d}(A)$ are the limit superior and the [[limit inferior|033RZ32T4Q]] of $A(n)/n$; they always exist.\n\n## Remarks\n\nThe natural density exists if and only if $\\overline{d}(A) = \\underline{d}(A)$, and then all three numbers are equal.\n\nExample: for the multiples of a positive integer $m$, $A(n) = \\floor{n/m}$, and $n/m - 1 \u003c A(n) \\le n/m$; so $d(A) = 1/m$.\n\nNon-example: let $A$ be the set of positive integers whose first decimal digit is $1$.\nFor $n = 2 \\cdot 10^k - 1$ one has $A(n) = 1 + 10 + \\dots + 10^k = (10^{k+1} - 1)/9$, so $A(n)/n \\to 5/9$.\nFor $n = 10^{k+1} - 1$ the count $A(n)$ is the same, so $A(n)/n \\to 1/9$.\nHence the limit does not exist; here $\\overline{d}(A) = 5/9$ and $\\underline{d}(A) = 1/9$.\n\nIf $d(A)$ and $d(B)$ exist and $A \\cap B$ is empty, then $d(A \\cup B) = d(A) + d(B)$.\nNatural density is not the same as [[Schnirelmann density|QHH8RY9XCZ]], which is an infimum over all $n$ and is $0$ for every set not containing $1$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "RVG9Z8NYA6",
    "kind": "definition",
    "msc": [
      "11B05"
    ],
    "name": "Natural density",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Natural_density"
      }
    ],
    "tag": "CTXX2CXFRB",
    "uses": [
      "0MWKJ44V5A",
      "05M5SWSZZD",
      "033RZ32T4Q"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/CTXX2CXFRB/",
  "links": [
    {
      "field": "defines",
      "target": "RVG9Z8NYA6"
    },
    {
      "field": "uses",
      "target": "0MWKJ44V5A"
    },
    {
      "field": "uses",
      "target": "05M5SWSZZD"
    },
    {
      "field": "uses",
      "target": "033RZ32T4Q"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/CTXX2CXFRB.md",
  "msc": [
    "11B05"
  ],
  "name": "Natural density",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/CTX/CTXX2CXFRB.md",
  "status": null,
  "tag": "CTXX2CXFRB",
  "uri": "m2://CTXX2CXFRB",
  "url": "https://math2.tamnd.com/wiki/natural-density-definition/",
  "writing": {
    "tag": "CTXX2CXFRB",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
