{"provider_name":"Hatena Blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/158934417/1702097020779738","blog_url":"https://info.atcoder.jp/","blog_title":"AtCoderInfo","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/atcoder/","width":"100%","url":"https://info.atcoder.jp/entry/algorithm_lectures/modular_arithmetic","height":"190","categories":["\u6574\u6570\u8ad6","\u5408\u540c\u5f0f","\u74b0"],"published":"2026-04-10 14:11:50","version":"1.0","description":"\u89e3\u8aac\u52d5\u753b\u306f\u3053\u3061\u3089\u3067\u3059\uff0e 1. \u6982\u8981 \u672c\u8a18\u4e8b\u3067\u306f\u5408\u540c\u5f0f\u306e\u57fa\u790e\u7684\u306a\u8003\u3048\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\uff0e \u5408\u540c\u5f0f\u306f\uff0c\u6574\u6570\u5168\u4f53\u3092 $m$ \u3067\u5272\u3063\u305f\u3068\u304d\u306e\u4f59\u308a\uff08\u5270\u4f59\uff09\u306b\u5fdc\u3058\u3066\u5206\u985e\u3059\u308b\u3082\u306e\u3067\u3059\uff0e\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306f\u7279\u306b\u300c\u7b54\u3048\u3092 $m$ \u3067\u5272\u3063\u305f\u4f59\u308a\u3067\u51fa\u529b\u305b\u3088\u300d\u3068\u3044\u3046\u5f62\u5f0f\u304c\u983b\u51fa\u3067\uff0c\u305d\u306e\u3088\u3046\u306a\u554f\u984c\u3067\u306f\u5408\u540c\u5f0f\u3092\u9069\u5207\u306b\u6271\u3048\u308b\u3053\u3068\u304c\u524d\u63d0\u3068\u306a\u308a\u307e\u3059\uff0e 2. \u524d\u63d0\u77e5\u8b58 \u7279\u306b\u3042\u308a\u307e\u305b\u3093\uff0e 3. \u5408\u540c\u5f0f\u3068\u5270\u4f59 3.1. \u5408\u540c\u5f0f \u3010\u5b9a\u7fa9 1\u3011 $m$ \u3092\u6b63\u6574\u6570\u3068\u3059\u308b\uff0e\u6574\u6570 $a,b$ \u306b\u5bfe\u3057\u3066 $a-b$ \u304c $m$ \u306e\u500d\u6570\u3067\u3042\u308b\u3068\u304d\uff0c\u3064\u307e\u308a $a-b=cm$ \u3068\u306a\u308b\u6574\u6570 $c$ \u304c\u5b58\u5728\u3059\u308b\u3068\u304d\uff0c$a$ \u3068 $b$ \u306f $m$ \u3092\u6cd5\u2026","title":"\u5408\u540c\u5f0f\u306e\u57fa\u790e","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfo.atcoder.jp%2Fentry%2Falgorithm_lectures%2Fmodular_arithmetic\" title=\"\u5408\u540c\u5f0f\u306e\u57fa\u790e - AtCoderInfo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","author_name":"atcoder"}