{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "081THG13JZ"
    }
  ],
  "body": "\n## Definition\n\nLet $X$ be a set and let $k$ be a positive integer.\nA recurrence relation of order $k$ on $X$ is an equation\n$$u_{n+k} = f(n, u_n, u_{n+1}, \\dots, u_{n+k-1}) \\qquad (n \\ge 0)$$\nfor a sequence $(u_n)_{n \\ge 0}$ in $X$, where $f : \\mathbb{N} \\times X^k \\to X$ is a given function.\n\nA solution is a sequence that satisfies the equation for all $n \\ge 0$.\n\n## Remarks\n\nFor each choice of initial values $u_0, \\dots, u_{k-1}$ there is exactly one solution. This follows by induction on $n$.\nExamples: the [[factorial|0WFCGVMRRC]] satisfies $u_{n+1} = (n + 1) u_n$ of order $1$. The [[Fibonacci sequence|0GA9K57A39]] satisfies $u_{n+2} = u_{n+1} + u_n$ of order $2$.\nAn important special case is a [[linear recurrence with constant coefficients|081THG13JZ]].\n\n## Explanations\n\n### L1 human\n\nA recurrence relation gives each term of a sequence from the terms just before it.\nOnce you know the first few terms, the rule determines all the others.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0FYX44GP92",
    "kind": "definition",
    "msc": [
      "39A05"
    ],
    "name": "Recurrence relation",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Recurrence_relation"
      }
    ],
    "tag": "07TZV87Y0T"
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/07TZV87Y0T/",
  "links": [
    {
      "field": "defines",
      "target": "0FYX44GP92"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/07TZV87Y0T.md",
  "msc": [
    "39A05"
  ],
  "name": "Recurrence relation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/07T/07TZV87Y0T.md",
  "status": null,
  "tag": "07TZV87Y0T",
  "uri": "m2://07TZV87Y0T",
  "url": "https://math2.tamnd.com/wiki/recurrence-relation-definition/",
  "writing": {
    "tag": "07TZV87Y0T",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
