{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "00C5P9JZBK"
    }
  ],
  "body": "\n## Statement\n\nLet $H_n = \\sum_{k=1}^{n} \\frac{1}{k}$ be the [[harmonic numbers|0D2Y6G4C4S]].\nThen the limit $\\lim_{n \\to \\infty} (H_n - \\ln n)$ exists, and it lies in $[0, 1]$.\nIn particular, $H_n \\sim \\ln n$ as $n \\to \\infty$.\n\n## Remarks\n\nLet $a_n = H_n - \\ln n$. Since $\\ln(n + 1) - \\ln n = \\int_n^{n+1} \\frac{dt}{t}$ lies between $\\frac{1}{n+1}$ and $\\frac{1}{n}$, the sequence $a_n$ decreases. Also $a_n \\ge H_n - \\ln(n + 1) \\ge 0$.\nThe [[monotone convergence theorem|0FM6N4R0VB]] gives the limit. It is the [[Euler–Mascheroni constant|00C5P9JZBK]] $\\gamma$.\nThe symbol $\\sim$ is [[asymptotic equivalence|00SB5EA3VW]]. Mathlib states the limit as `Real.tendsto_harmonic_sub_log`.\n\n## Explanations\n\n### L1 human\n\nThe sum $1 + 1/2 + \\cdots + 1/n$ is close to the area under $1/x$ from $1$ to $n$, which is $\\ln n$.\nThe error tends to a constant.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "11B83",
      "26A12"
    ],
    "name": "Harmonic numbers grow like log n",
    "role": "theorem",
    "sources": [
      {
        "locator": "Harmonic numbers for real and complex values",
        "url": "https://en.wikipedia.org/wiki/Harmonic_number"
      },
      {
        "locator": "Analysis",
        "url": "https://en.wikipedia.org/wiki/Euler%27s_constant"
      }
    ],
    "tag": "05S2GSPMGA",
    "uses": [
      "0D2Y6G4C4S",
      "0044CPHJBV",
      "0K1N1Y4EGZ",
      "0FM6N4R0VB",
      "00C5P9JZBK",
      "00SB5EA3VW"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/05S2GSPMGA/",
  "links": [
    {
      "field": "uses",
      "target": "0D2Y6G4C4S"
    },
    {
      "field": "uses",
      "target": "0044CPHJBV"
    },
    {
      "field": "uses",
      "target": "0K1N1Y4EGZ"
    },
    {
      "field": "uses",
      "target": "0FM6N4R0VB"
    },
    {
      "field": "uses",
      "target": "00C5P9JZBK"
    },
    {
      "field": "uses",
      "target": "00SB5EA3VW"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/05S2GSPMGA.md",
  "msc": [
    "11B83",
    "26A12"
  ],
  "name": "Harmonic numbers grow like log n",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/05S/05S2GSPMGA.md",
  "status": null,
  "tag": "05S2GSPMGA",
  "uri": "m2://05S2GSPMGA",
  "url": "https://math2.tamnd.com/wiki/harmonic-numbers-grow-like-log-n/",
  "writing": {
    "tag": "05S2GSPMGA",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
