{
  "aliases": [
    "absolute-pseudoprime"
  ],
  "backlinks": null,
  "body": "\n## Definition\n\nA Carmichael number is a [[composite number|0N3ADXHNTQ]] $n$ such that $a^{n-1} \\equiv 1 \\pmod n$ for each integer $a$ [[coprime|0GFKP8F8AG]] to $n$.\n\n## Remarks\n\nThus a Carmichael number is a [[Fermat pseudoprime|02M2K4QH9P]] to each base coprime to it.\nKorselt's criterion: a composite $n$ is a Carmichael number if and only if $n$ is square-free and $p - 1 \\mid n - 1$ for each prime $p \\mid n$.\nThe smallest Carmichael number is $561 = 3 \\cdot 11 \\cdot 17$. Here $2$, $10$ and $16$ divide $560$.\nAlford, Granville and Pomerance proved in 1994 that there are infinitely many Carmichael numbers.\n\n## Explanations\n\n### L1 human\n\nA Carmichael number behaves like a prime for the Fermat test, for each base that has no common factor with it.\nSo the [[Fermat primality test|0N5ZSZMYH6]] cannot detect it, unless the base shares a factor with it.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "absolute-pseudoprime"
    ],
    "defines": "060ZX7C32T",
    "kind": "definition",
    "msc": [
      "11A51"
    ],
    "name": "Carmichael number",
    "sources": [
      {
        "locator": "Overview",
        "url": "https://en.wikipedia.org/wiki/Carmichael_number"
      }
    ],
    "tag": "0TA7WT68RK",
    "uses": [
      "0N3ADXHNTQ",
      "0GFKP8F8AG",
      "02M2K4QH9P"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0TA7WT68RK/",
  "links": [
    {
      "field": "defines",
      "target": "060ZX7C32T"
    },
    {
      "field": "uses",
      "target": "0N3ADXHNTQ"
    },
    {
      "field": "uses",
      "target": "0GFKP8F8AG"
    },
    {
      "field": "uses",
      "target": "02M2K4QH9P"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0TA7WT68RK.md",
  "msc": [
    "11A51"
  ],
  "name": "Carmichael number",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0TA/0TA7WT68RK.md",
  "status": null,
  "tag": "0TA7WT68RK",
  "uri": "m2://0TA7WT68RK",
  "url": "https://math2.tamnd.com/wiki/carmichael-number-definition/",
  "writing": {
    "tag": "0TA7WT68RK",
    "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
      }
    ]
  }
}
