{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $f$ be a [[smooth function|0BE3QDH73A]] on an open interval that contains $[0, \\infty)$, and let $B_{2k}$ be the [[Bernoulli numbers|0RAS24E1R5]], with $B_2 = \\frac16$.\nAssume that the series $\\sum_{k \\ge 1} \\frac{B_{2k}}{(2k)!} f^{(2k-1)}(0)$ converges.\nThe *Ramanujan sum* of the series $\\sum_{n \\ge 1} f(n)$ is\n$$\\sum_{n \\ge 1}^{\\mathcal{R}} f(n) = -\\frac{f(0)}{2} - \\sum_{k \\ge 1} \\frac{B_{2k}}{(2k)!} f^{(2k-1)}(0).$$\n\n## Remarks\n\nIf $f$ is a polynomial, only finitely many derivatives are nonzero and the series in the definition is a finite sum.\n\nExample: for $f(x) = x$, one has $f(0) = 0$, $f'(0) = 1$ and all higher derivatives vanish.\nSo the Ramanujan sum of $1 + 2 + 3 + \\cdots$ is $-\\frac{B_2}{2} = -\\frac{1}{12}$.\nFor $f(x) = 1$, the Ramanujan sum of $1 + 1 + 1 + \\cdots$ is $-\\frac12$.\n\nNot a regular method: for $f(x) = e^{-x}$ the series $\\sum_{n \\ge 1} e^{-n}$ converges to $\\frac{1}{e - 1}$.\nFrom $\\frac{t}{e^t - 1} = 1 - \\frac{t}{2} + \\sum_{k \\ge 1} \\frac{B_{2k}}{(2k)!} t^{2k}$ at $t = 1$ one gets $\\sum_{k \\ge 1} \\frac{B_{2k}}{(2k)!} = \\frac{1}{e-1} - \\frac12$.\nSince $f^{(2k-1)}(0) = -1$, the Ramanujan sum is $-\\frac12 + \\frac{1}{e-1} - \\frac12 = \\frac{1}{e-1} - 1$.\nIt differs from the ordinary sum by $\\int_0^\\infty e^{-x} \\, dx = 1$.\n\nNot stable: for $g(x) = f(x + 1)$ with $f = 1$, the Ramanujan sum of $\\sum g(n)$ is $-\\frac12$, not $-\\frac12 - f(1) = -\\frac32$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "E3SRYCE5VN",
    "kind": "definition",
    "msc": [
      "40G99",
      "11B68"
    ],
    "name": "Ramanujan summation",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Ramanujan_summation"
      }
    ],
    "tag": "C87X3ACS76",
    "uses": [
      "8X25Q4XYMN",
      "0BE3QDH73A",
      "0RAS24E1R5"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/C87X3ACS76/",
  "links": [
    {
      "field": "defines",
      "target": "E3SRYCE5VN"
    },
    {
      "field": "uses",
      "target": "8X25Q4XYMN"
    },
    {
      "field": "uses",
      "target": "0BE3QDH73A"
    },
    {
      "field": "uses",
      "target": "0RAS24E1R5"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/C87X3ACS76.md",
  "msc": [
    "40G99",
    "11B68"
  ],
  "name": "Ramanujan summation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/C87/C87X3ACS76.md",
  "status": null,
  "tag": "C87X3ACS76",
  "uri": "m2://C87X3ACS76",
  "url": "https://math2.tamnd.com/wiki/ramanujan-summation-definition/",
  "writing": {
    "tag": "C87X3ACS76",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
