{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "009TEMTQKH"
    }
  ],
  "body": "\n## Definition\n\nLet $X$ be a set and let $k$ be a natural number.\nA $k$-combination with repetition of $X$ is a multiset of size $k$ with elements in $X$.\nThat is a function $m : X \\to \\mathbb{N}$ with $\\sum_{x \\in X} m(x) = k$, where $m(x)$ is the multiplicity of $x$.\n\nFor natural numbers $n$ and $k$, the multiset coefficient $\\left(\\!\\binom{n}{k}\\!\\right)$ is the number of $k$-combinations with repetition of an $n$-element set.\n\n## Remarks\n\nThe value is $\\left(\\!\\binom{n}{k}\\!\\right) = \\binom{n + k - 1}{k}$. This is [[stars and bars|009TEMTQKH]].\nFor $X = \\{a, b\\}$ and $k = 2$ there are $3$ multisets: $\\{a, a\\}$, $\\{a, b\\}$ and $\\{b, b\\}$.\nUnlike a [[combination|0JZSRWRBZE]], a combination with repetition can use an element more than once.\n\n## Explanations\n\n### L1 human\n\nA combination with repetition is a choice of $k$ items from $n$ kinds. You can take the same kind more than once, and the order does not matter.\nAn example is a bag of 3 fruits from apples, pears and plums.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "defines": "0VQQCVG8WA",
    "kind": "definition",
    "msc": [
      "05A10"
    ],
    "name": "Combinations with repetition",
    "sources": [
      {
        "locator": "Counting multisets",
        "url": "https://en.wikipedia.org/wiki/Multiset"
      }
    ],
    "tag": "0YEQG3VBYC"
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0YEQG3VBYC/",
  "links": [
    {
      "field": "defines",
      "target": "0VQQCVG8WA"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0YEQG3VBYC.md",
  "msc": [
    "05A10"
  ],
  "name": "Combinations with repetition",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0YE/0YEQG3VBYC.md",
  "status": null,
  "tag": "0YEQG3VBYC",
  "uri": "m2://0YEQG3VBYC",
  "url": "https://math2.tamnd.com/wiki/combinations-with-repetition-definition/",
  "writing": {
    "tag": "0YEQG3VBYC",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
