{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "01X5CVV1Q5"
    }
  ],
  "body": "\n## Statement\n\nLet $r$ be a real number with $r \\ne 1$, and let $n$ be a natural number.\nThen\n$$\\sum_{k=0}^{n-1} r^k = 1 + r + r^2 + \\cdots + r^{n-1} = \\frac{1 - r^n}{1 - r}.$$\n\n## Remarks\n\nThe proof multiplies the sum $S$ by $1 - r$. The product $(1 - r) S$ telescopes to $1 - r^n$.\nFor $r = 1$ the sum is $n$.\nThe identity holds in each commutative ring in the form $(1 - r) \\sum_{k=0}^{n-1} r^k = 1 - r^n$, with no division.\nMathlib also states the version for a sum over the indices $m \\le k \u003c n$, as `geom_sum_Ico`.\nLetting $n \\to \\infty$ gives the [[geometric series|01X5CVV1Q5]].\n\n## Explanations\n\n### L1 human\n\nWrite $S = 1 + r + \\cdots + r^{n-1}$ and $rS = r + r^2 + \\cdots + r^n$.\nSubtract, and almost all terms cancel: $S - rS = 1 - r^n$.\nFor example, $1 + 2 + 4 + 8 = (1 - 16)/(1 - 2) = 15$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "40A05"
    ],
    "name": "Sum of a finite geometric series",
    "role": "proposition",
    "sources": [
      {
        "locator": "Definition: finite geometric series",
        "url": "https://en.wikipedia.org/wiki/Geometric_series"
      }
    ],
    "tag": "05APWSX53S",
    "uses": [
      "0MNM54WB99"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/05APWSX53S/",
  "links": [
    {
      "field": "uses",
      "target": "0MNM54WB99"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/05APWSX53S.md",
  "msc": [
    "40A05"
  ],
  "name": "Sum of a finite geometric series",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/05A/05APWSX53S.md",
  "status": null,
  "tag": "05APWSX53S",
  "uri": "m2://05APWSX53S",
  "url": "https://math2.tamnd.com/wiki/sum-of-a-finite-geometric-series/",
  "writing": {
    "tag": "05APWSX53S",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
