{
  "aliases": null,
  "backlinks": [
    {
      "field": "about",
      "target": "7W7VV861JW"
    },
    {
      "field": "uses",
      "target": "7W7VV861JW"
    },
    {
      "field": "uses",
      "target": "XWJ786Z701"
    },
    {
      "field": "specializes",
      "target": "NFJTRCRB9W"
    },
    {
      "field": "defines",
      "target": "SVGN0QKE2C"
    }
  ],
  "body": "\n## Summary\n\nA linear recurrence expresses a term of a sequence as a linear combination of earlier terms.\nIt may also add an extra term that depends only on the index.\nIt is homogeneous when this extra term is zero, and inhomogeneous otherwise.\nThe solutions of a homogeneous recurrence form a vector space.\nThe solutions of an inhomogeneous one form a translate of that space.\nSo solving an inhomogeneous recurrence reduces to finding one particular solution and the solutions of the homogeneous one.\n\n## Explanations\n\n### L1 human\n\nThe rule $u_{n+2} = u_{n+1} + u_n$ only mixes earlier terms, so it is homogeneous.\nThe rule $u_{n+1} = 2 u_n + 1$ adds a fixed amount at each step, so it is inhomogeneous.\nFor a homogeneous rule, the all-zero sequence is always a solution, and sums and multiples of solutions are again solutions.\nFor an inhomogeneous rule this fails: the zero sequence does not satisfy $u_{n+1} = 2 u_n + 1$.\nIts solutions are $u_n = c\\, 2^n - 1$: one particular solution $-1$, plus any solution $c\\, 2^n$ of $u_{n+1} = 2 u_n$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "39A06",
      "39A05"
    ],
    "name": "Homogeneous and inhomogeneous linear recurrences",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Linear_recurrence_with_constant_coefficients"
      }
    ],
    "specializes": [
      "0FYX44GP92"
    ],
    "tag": "8Y28JQB0Q5"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/8Y28JQB0Q5/",
  "links": [
    {
      "field": "specializes",
      "target": "0FYX44GP92"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/8Y28JQB0Q5.md",
  "msc": [
    "39A06",
    "39A05"
  ],
  "name": "Homogeneous and inhomogeneous linear recurrences",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/8Y2/8Y28JQB0Q5.md",
  "status": null,
  "tag": "8Y28JQB0Q5",
  "uri": "m2://8Y28JQB0Q5",
  "url": "https://tamnd.github.io/math2/wiki/homogeneous-and-inhomogeneous-linear-recurrences/",
  "writing": {
    "tag": "8Y28JQB0Q5",
    "kind": "concept",
    "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
      }
    ]
  }
}
