{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $m \\ge 1$ be an integer, and let $a, b \\in \\Z$.\nFor a real $t$, write $e(t) = e^{2\\pi i t}$.\nFor an integer $x$ coprime to $m$, let $\\bar{x}$ be an integer with $x \\bar{x} \\equiv 1 \\pmod{m}$.\nThe *Kloosterman sum* is\n$$K(a, b; m) = \\sum_{\\substack{x \\bmod m \\\\ \\gcd(x, m) = 1}} e\\!\\left(\\frac{a x + b \\bar{x}}{m}\\right),$$\nwhere $x$ runs over a set of representatives of the invertible classes of the [[integers modulo m|03VFZ2WETT]].\n\n## Remarks\n\nThe value does not depend on the choice of representatives or of $\\bar{x}$, since the phase is defined modulo $1$.\nExample: $m = 5$, $a = b = 1$.\nThe pairs $(x, \\bar{x})$ are $(1, 1), (2, 3), (3, 2), (4, 4)$, so the phases are $2/5, 1, 1, 8/5$ and\n$$K(1, 1; 5) = e(2/5) + 2 + e(3/5) = 2 + 2\\cos(4\\pi/5) \\approx 0.382.$$\nNon-example: the sum $\\sum_{x = 0}^{m-1} e((a x + b \\bar{x})/m)$ over all residues is not defined, since $\\bar{x}$ does not exist when $\\gcd(x, m) \u003e 1$.\nThe sum is real, because replacing $x$ by $-x$ conjugates each term.\nIf $\\gcd(a, m) = 1$, then $K(a, b; m) = K(1, ab; m)$.\nFor $b = 0$, the sum $K(a, 0; m)$ is the Ramanujan sum $c_m(a)$.\nIt is an [[exponential sum|97PBMQCPPM]] in which the phase function is $x \\mapsto (ax + b\\bar{x})/m$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "E1SQWQ2PAV",
    "kind": "definition",
    "msc": [
      "11L05"
    ],
    "name": "Kloosterman sum",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Kloosterman_sum"
      }
    ],
    "tag": "JMTJG4B94M",
    "uses": [
      "97PBMQCPPM",
      "03VFZ2WETT",
      "07GJV36896"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/JMTJG4B94M/",
  "links": [
    {
      "field": "defines",
      "target": "E1SQWQ2PAV"
    },
    {
      "field": "uses",
      "target": "97PBMQCPPM"
    },
    {
      "field": "uses",
      "target": "03VFZ2WETT"
    },
    {
      "field": "uses",
      "target": "07GJV36896"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/JMTJG4B94M.md",
  "msc": [
    "11L05"
  ],
  "name": "Kloosterman sum",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/JMT/JMTJG4B94M.md",
  "status": null,
  "tag": "JMTJG4B94M",
  "uri": "m2://JMTJG4B94M",
  "url": "https://math2.tamnd.com/wiki/kloosterman-sum-definition/",
  "writing": {
    "tag": "JMTJG4B94M",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
