{
  "id": "2017/411",
  "url": "https://opencryptology.org/2017/411",
  "original_url": "https://eprint.iacr.org/2017/411",
  "title": "A New Algorithm for Inversion mod $p^k$",
  "authors": [
    "Çetin Kaya Koç"
  ],
  "affiliations": null,
  "abstract": "A new algorithm for computing $x=a^{-1}\\pmod{p^k}$ is introduced.\nIt is based on the exact solution of linear equations using\n$p$-adic expansions. It starts with the initial value\n$c=a^{-1}\\pmod{p}$ and iteratively computes the digits of\nthe inverse $x=a^{-1}\\pmod{p^k}$ in base $p$.\nThe mod 2 version of the algorithm is significantly more\nefficient than the existing algorithms for small values\nof $k$. We also describe and analyze\nall existing algorithms, and compare them to\nthe proposed algorithm.\nOur algorithm stands out as being the only one that works\nfor any $p$, any $k$, and digit-by-digit. Moreover it requires\nthe minimal number of arithmetic operations (just a single\naddition) per step.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A New Algorithm for Inversion mod $p^k$” by Çetin Kaya Koç, Cryptology ePrint Archive, Paper 2017/411, https://eprint.iacr.org/2017/411. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2017-05-13T15:33:05Z",
    "updated": "2017-06-28T15:46:17Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2017/411.pdf",
    "sha256": "f326bdaa0ca51968b375f803c2ec1a07cf13db3a9f04137aacf551aa719ac23e",
    "size": 285124,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:41:11Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2017/411/versions/20190225T174111Z.pdf",
      "captured_at": "2019-02-25T17:41:11Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2017/411.pdf",
      "size": 285124,
      "sha256": "f326bdaa0ca51968b375f803c2ec1a07cf13db3a9f04137aacf551aa719ac23e",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251230151548id_/https://eprint.iacr.org/2017/411.pdf",
      "captured_at": "2025-12-30T15:15:48Z",
      "size": 286032
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2017/411.pdf",
      "captured_at": "2019-02-25T17:41:11Z",
      "size": 285124
    }
  ],
  "bibtex": "@misc{cryptoeprint:2017/411,\n      author = {Çetin Kaya Koç},\n      title = {A New Algorithm for Inversion mod $p^k$},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2017/411},\n      year = {2017},\n      url = {https://eprint.iacr.org/2017/411}\n}"
}
