{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $X$ be a set, let $f \\colon X \\to X$ be a map, and let $x \\in X$ be a [[periodic point|T75CZ5H47N]] of $f$.\nThe *minimal period*, or *prime period*, of $x$ is the least integer $n \\ge 1$ such that $f^n(x) = x$, where $f^n$ is the $n$-th [[iterate|AYVTR2ES5B]] of $f$.\n\n## Remarks\n\nLet $p$ be the minimal period of $x$.\nThen $f^m(x) = x$ holds exactly when $p$ divides $m$: write $m = qp + r$ with $0 \\le r \u003c p$; then $x = f^m(x) = f^r(x)$, so $r = 0$ by minimality.\nThe points $x, f(x), \\dots, f^{p-1}(x)$ are distinct, so the orbit of $x$ has exactly $p$ points.\nA point has minimal period $1$ exactly when it is a fixed point.\n\nExample: for $f(x) = -x$ on $\\R$ and $x = 1$, one has $f(1) = -1 \\ne 1$ and $f^2(1) = 1$, so the minimal period is $2$.\n\nNon-example: for the same map, $2$ is not the minimal period of $0$.\nIt is a period, since $f^2(0) = 0$, but already $f(0) = 0$, so the minimal period of $0$ is $1$.\n\nIn Lean's Mathlib, `Function.minimalPeriod f x` is defined for all $x$ and takes the value $0$ when $x$ is not periodic.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "VFZRVZ9SD8",
    "kind": "definition",
    "msc": [
      "37C25",
      "37B02"
    ],
    "name": "Minimal period",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Periodic_point"
      }
    ],
    "tag": "FHFWE27514",
    "uses": [
      "T75CZ5H47N",
      "AYVTR2ES5B"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/FHFWE27514/",
  "links": [
    {
      "field": "defines",
      "target": "VFZRVZ9SD8"
    },
    {
      "field": "uses",
      "target": "T75CZ5H47N"
    },
    {
      "field": "uses",
      "target": "AYVTR2ES5B"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/FHFWE27514.md",
  "msc": [
    "37C25",
    "37B02"
  ],
  "name": "Minimal period",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/FHF/FHFWE27514.md",
  "status": null,
  "tag": "FHFWE27514",
  "uri": "m2://FHFWE27514",
  "url": "https://tamnd.github.io/math2/wiki/minimal-period-definition/",
  "writing": {
    "tag": "FHFWE27514",
    "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
      }
    ]
  }
}
