{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe argue by [[induction|0ASJVEFA9J]] on $n$.\nFor each natural number $n$, let $T_n = \\sum_{k=0}^{n} k$, and let $P(n)$ be the claim $T_n = \\frac{n(n+1)}{2}$.\nWe compute with rational numbers, so division by $2$ is allowed.\n\n1. Base case: $T_0 = 0$, and $\\frac{0 \\cdot 1}{2} = 0$. So $P(0)$ holds.\n2. Induction step: suppose that $P(n)$ holds for some natural number $n$.\n3. The sum up to $n + 1$ is the sum up to $n$ plus the last term: $T_{n+1} = T_n + (n + 1)$.\n4. By the hypothesis, $T_{n+1} = \\frac{n(n+1)}{2} + (n + 1)$.\n5. We rewrite: $\\frac{n(n+1)}{2} + \\frac{2(n+1)}{2} = \\frac{(n+1)(n+2)}{2}$, by factoring out $n + 1$.\n6. So $T_{n+1} = \\frac{(n+1)((n+1)+1)}{2}$, which is $P(n + 1)$.\n7. By induction, $P(n)$ holds for every natural number $n$, that is, $0 + 1 + \\dots + n = \\frac{n(n+1)}{2}$.\n\n## Idea\n\nGoing from $n$ to $n + 1$ adds the term $n + 1$ to the sum.\nThe formula grows by the same amount, because $\\frac{(n+1)(n+2)}{2} - \\frac{n(n+1)}{2} = n + 1$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "methods": [
      "0ASJVEFA9J"
    ],
    "msc": [
      "05A19"
    ],
    "name": "Proof of the sum of the first n natural numbers by induction",
    "proves": "01QZNHQWYD",
    "sources": [
      {
        "locator": "Formula",
        "url": "https://en.wikipedia.org/wiki/Triangular_number"
      }
    ],
    "tag": "RPN0M29F6P",
    "uses": [
      "0ASJVEFA9J"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/RPN0M29F6P/",
  "links": [
    {
      "field": "proves",
      "target": "01QZNHQWYD"
    },
    {
      "field": "uses",
      "target": "0ASJVEFA9J"
    },
    {
      "field": "methods",
      "target": "0ASJVEFA9J"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/RPN0M29F6P.md",
  "msc": [
    "05A19"
  ],
  "name": "Proof of the sum of the first n natural numbers by induction",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/RPN/RPN0M29F6P.md",
  "status": null,
  "tag": "RPN0M29F6P",
  "uri": "m2://RPN0M29F6P",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-sum-of-the-first-n-natural-numbers-by-induction/",
  "writing": {
    "tag": "RPN0M29F6P",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
