{
  "aliases": [
    "coin-problem",
    "frobenius-number"
  ],
  "backlinks": null,
  "body": "\n## Statement\n\nLet $a$ and $b$ be [[coprime|0GFKP8F8AG]] integers with $a \u003e 1$ and $b \u003e 1$.\nThen $ab - a - b$ is not of the form $ax + by$ with natural numbers $x$ and $y$.\nEvery integer $n \u003e ab - a - b$ is of this form.\n\n## Remarks\n\nThe number $ab - a - b$ is the Frobenius number of $a$ and $b$: the largest amount that one cannot pay with coins of values $a$ and $b$.\nFor example, with coins of $3$ and $5$, the amount $7$ is impossible, but $8$, $9$, $10$ and all larger amounts are possible.\nExactly $(a - 1)(b - 1)/2$ positive integers are not of the form $ax + by$.\nFor three or more coin values, no such simple formula is known.\n\n## History\n\nJames Joseph Sylvester found the formula for two coins in 1882.\n\n## Explanations\n\n### L1 human\n\nWith coins of values $a$ and $b$, you can pay all large amounts when $a$ and $b$ are coprime.\nThe theorem gives the largest amount that you cannot pay: $ab - a - b$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "coin-problem",
      "frobenius-number"
    ],
    "kind": "statement",
    "msc": [
      "11D07"
    ],
    "name": "Frobenius coin problem",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q2295746",
      "wikipedia": "Coin problem"
    },
    "sources": [
      {
        "locator": "n = 2",
        "url": "https://en.wikipedia.org/wiki/Coin_problem"
      }
    ],
    "tag": "0V11FEXK08",
    "uses": [
      "0GFKP8F8AG"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0V11FEXK08/",
  "links": [
    {
      "field": "uses",
      "target": "0GFKP8F8AG"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0V11FEXK08.md",
  "msc": [
    "11D07"
  ],
  "name": "Frobenius coin problem",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0V1/0V11FEXK08.md",
  "status": null,
  "tag": "0V11FEXK08",
  "uri": "m2://0V11FEXK08",
  "url": "https://math2.tamnd.com/wiki/frobenius-coin-problem/",
  "writing": {
    "tag": "0V11FEXK08",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
