{"author_url":"https://blog.hatena.ne.jp/inamori/","categories":["\u6570\u5b66","Python"],"title":"Project Euler 241","image_url":null,"url":"https://inamori.hateblo.jp/entry/20090802/p1","author_name":"inamori","blog_title":"inamori\u2019s diary","height":"190","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/ Q241. n\u306e\u5168\u3066\u306e\u7d04\u6570\u306e\u548c\u3092\u03c3(n)\u3001p(n) = \u03c3(n) / n\u3068\u3059\u308b\u3002 p(n) = k + 1 / 2(k\u306f\u6b63\u306e\u6574\u6570)\u3068\u306a\u308bn \u2264 1018\u306e\u7dcf\u548c\u3092\u6c42\u3081\u3088\u3002 n = p1e1...pmem\u306a\u3089\u3001\u03c3(n) = (p1e1+1-1)/p1e1(p-1)...(pmem+1-1)/pmem(pm-1)\u3060\u304b\u3089\u3001\u3042\u3068\u306f\u518d\u5e30\u7684\u306b\u7d20\u56e0\u6570\u3092\u9078\u3093\u3067\u3044\u304f\u3002\u7d20\u56e0\u6570\u306f\u5c0f\u3055\u3044\u307b\u3046\u304b\u3089\u9078\u3076\u30022\u304c\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u610f\u5916\u306b\u5927\u304d\u306a\u7d20\u6570\u306f\u4f7f\u3048\u306a\u304f\u3066\u3001\u4f8b\u3048\u3070n\u304c1000\u4ee5\u4e0b\u3067\u3001\u4eca\u306e\u7d20\u6570\u304c11\u3067\u300113/10\u3092\u4f5c\u308d\u3046\u3068\u3057\u3066\u3082\u30012\u3064\u3057\u304b\u4f7f\u3048\u306a\u3044\u304b\u3089\u300113\u2026","blog_url":"https://inamori.hateblo.jp/","type":"rich","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090802%2Fp1\" title=\"Project Euler 241 - 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>","version":"1.0","published":"2009-08-02 00:00:01"}