{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $x \\ge 0$ be a real number with a [[decimal expansion|06XY4X9430]] that is eventually periodic.\nThat is, there are $N \\ge 0$ and $p \\ge 1$ with $d_{k + p} = d_k$ for each $k \u003e N$.\nThen $x$ is a [[rational number|0NCJ5WXN6Z]].\n\n## Remarks\n\nProof: $10^{N+p} x - 10^N x$ is an integer, because the periodic tails cancel. Thus $x$ is a quotient of an integer by $10^N (10^p - 1)$.\nFor example, $x = 0.\\overline{36}$ gives $100 x - x = 36$, thus $x = 36/99 = 4/11$.\nThe converse is also true: the decimal expansion of each rational number is eventually periodic.\n\n## Explanations\n\n### L1 human\n\nA decimal that repeats the same block of digits forever is always a fraction.\nShift the decimal point by the length of the block and subtract: the endless tail disappears.\nFor $0.777\\dots$, this gives $10 x - x = 7$, thus $x = 7/9$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "11A63"
    ],
    "name": "Repeating decimals are rational",
    "role": "theorem",
    "sources": [
      {
        "locator": "Every repeating or terminating decimal is a rational number",
        "url": "https://en.wikipedia.org/wiki/Repeating_decimal"
      }
    ],
    "tag": "065S5B9HF1",
    "uses": [
      "06XY4X9430",
      "0NCJ5WXN6Z",
      "03X8V7D64M"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/065S5B9HF1/",
  "links": [
    {
      "field": "uses",
      "target": "06XY4X9430"
    },
    {
      "field": "uses",
      "target": "0NCJ5WXN6Z"
    },
    {
      "field": "uses",
      "target": "03X8V7D64M"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/065S5B9HF1.md",
  "msc": [
    "11A63"
  ],
  "name": "Repeating decimals are rational",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/065/065S5B9HF1.md",
  "status": null,
  "tag": "065S5B9HF1",
  "uri": "m2://065S5B9HF1",
  "url": "https://math2.tamnd.com/wiki/repeating-decimals-are-rational/",
  "writing": {
    "tag": "065S5B9HF1",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
