{
  "id": "enwiki-001303920819",
  "slug": "self-number",
  "title": "Self number",
  "qid": "",
  "lead": "In number theory, a self number in a given number base b is a natural number that cannot be written as the sum of any other natural number n and the individual digits of n . 20 is a self number (in base 10), because no such combination can be found (all n give a result less than 20; all other n give a result greater than 20). 21 is not, because it can be written as 15 + 1 + 5 using n = 15. These numbers were first described in 1959 by the Indian mathematician D. R. Kaprekar.",
  "body": "In number theory, a self number in a given number base b is a natural number that cannot be written as the sum of any other natural number n and the individual digits of n . 20 is a self number (in base 10), because no such combination can be found (all n give a result less than 20; all other n give a result greater than 20). 21 is not, because it can be written as 15 + 1 + 5 using n = 15. These numbers were first described in 1959 by the Indian mathematician D. R. Kaprekar. ==Definition and properties== Let n be a natural number. We define the b -self function F_b : \\mathbb{N} \\rightarrow \\mathbb{N} for base b > 1 to be the following: F_{b}(n) = n + \\sum_{i=0}^{k - 1} d_i. where k = \\lfloor \\log_{b}{n} \\rfloor + 1 is the number of digits in the number in base b , and d_i = \\frac{n \\bmod{b^{i+1}} - n \\bmod b^i}{b^i} is the value of each digit of the number. A natural number n is a b -self number if the preimage of n for F_b is the empty set. In general, for even bases, all odd numbers below the base number are self numbers, since any number below such an odd number would have to also be a 1-digit number which when added to its digit would result in an even number. For odd bases, all odd numbers are self numbers. The set of self numbers in a given base b is infinite and has a positive asymptotic density: when b is odd, this density is 1/2. ==References== Kaprekar, D. R. The Mathematics of New Self-Numbers Devaiali (1963): 19 - 20.",
  "categories": [
    "20309567",
    "20477251",
    "23118434",
    "23603337",
    "29264802"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1303920819",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1754163287.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001303920819",
    "type": "webpage",
    "title": "Self number",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/self-number",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          18
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          18
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001303920819",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1303920819",
    "note": "Immutable snapshot enwiki-001303920819"
  }
}