{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0578PA53VA"
    }
  ],
  "body": "\n## Definition\n\nThe partition function is the function $p : \\mathbb{N} \\to \\mathbb{N}$ such that $p(n)$ is the number of [[partitions|0404R9P9J3]] of $n$.\n\n## Remarks\n\nThe values for $n = 0, 1, \\dots, 10$ are $1, 1, 2, 3, 5, 7, 11, 15, 22, 30, 42$.\nThe [[generating function for partitions|0578PA53VA]] is $\\sum_{n \\ge 0} p(n) x^n = \\prod_{k \\ge 1} \\frac{1}{1 - x^k}$.\nThe function grows faster than any polynomial and slower than any exponential $c^n$ with $c \u003e 1$.\n\n## Explanations\n\n### L1 human\n\n$p(n)$ counts the ways to write $n$ as a sum of positive integers in any order.\nFor example, $p(5) = 7$: $5$, $4+1$, $3+2$, $3+1+1$, $2+2+1$, $2+1+1+1$ and $1+1+1+1+1$.\n",
  "commit": "15acc1e7dab72d7006dda8aea79ffe6808556165",
  "front": {
    "defines": "0CV69WDRXW",
    "kind": "definition",
    "msc": [
      "11P81"
    ],
    "name": "Partition function",
    "sources": [
      {
        "locator": "Definition and examples",
        "url": "https://en.wikipedia.org/wiki/Partition_function_(number_theory)"
      }
    ],
    "tag": "001CX45SWQ",
    "uses": [
      "0404R9P9J3"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/001CX45SWQ/",
  "links": [
    {
      "field": "defines",
      "target": "0CV69WDRXW"
    },
    {
      "field": "uses",
      "target": "0404R9P9J3"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/001CX45SWQ.md",
  "msc": [
    "11P81"
  ],
  "name": "Partition function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/001/001CX45SWQ.md",
  "status": null,
  "tag": "001CX45SWQ",
  "uri": "m2://001CX45SWQ",
  "url": "https://math2.tamnd.com/wiki/partition-function-definition/",
  "writing": {
    "tag": "001CX45SWQ",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
