{"author_url":"https://blog.hatena.ne.jp/inamori/","type":"rich","description":"Problem 130\u524d\u56de\u306e\u5b9a\u7fa9\u3067B(n)\u306f\u3001 10e \u2261 1(mod n) \u3092\u6e80\u305f\u3059\u6700\u5c0f\u306ee(> 0)\u3068\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3092n\u306e\u65e2\u7d04\u5270\u4f59\u985e\u7fa4\u3067\u306e10\u306e\u4f4d\u6570\u3068\u8a00\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u52b9\u7387\u7684\u306b\u6c42\u3081\u308c\u3070\u3088\u3044\u3067\u3059\u3002n\u3092\u7d20\u56e0\u6570\u5206\u89e3\u3057\u3066\u3001 n = p1e1...pmem \u3068\u3059\u308b\u3068\u3001 B(n) = lcm(B(p1e1), ... , B(pmem)) \u3068\u306a\u308a\u307e\u3059\u3002\u3088\u3063\u3066\u3001\u500b\u3005\u306eB(pe)\u3092\u8a08\u7b97\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u3002\u30aa\u30a4\u30e9\u30fc\u306e\u5b9a\u7406\u3001 10\u03c6(pe) \u2261 1(mod pe) \uff08p\u306810\u306f\u4e92\u3044\u306b\u7d20\uff09 \u3067\u3001\u03c6(pe) = (p - 1)pe-1\u306a\u306e\u3067\u3001B(pe)\u306f(p - 1)pe-1\u306e\u7d04\u6570\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001B(169)\u3092\u8003\u3048\u3066\u307f\u307e\u2026","author_name":"inamori","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120413%2Fp1\" title=\"Project Euler 130 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Project Euler 130","image_url":null,"blog_url":"https://inamori.hateblo.jp/","version":"1.0","width":"100%","provider_url":"https://hatena.blog","published":"2012-04-13 00:00:00","blog_title":"inamori\u2019s diary","height":"190","url":"https://inamori.hateblo.jp/entry/20120413/p1","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Python"]}