{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120414%2Fp1\" title=\"Project Euler 132 - 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>","height":"190","author_url":"https://blog.hatena.ne.jp/inamori/","version":"1.0","published":"2012-04-14 00:00:00","blog_title":"inamori\u2019s diary","blog_url":"https://inamori.hateblo.jp/","provider_name":"Hatena Blog","width":"100%","author_name":"inamori","type":"rich","description":"Problem 1322, 3, 5\u4ee5\u5916\u306e\u7d20\u6570\u3092\u5217\u6319\u3057\u307e\u3059\u3002A(p)\uff08\u3059\u306a\u308f\u3061B(p)\uff09\u304c109\u3092\u5272\u308a\u5207\u308b\u7d20\u6570p\u3092\u5217\u6319\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u3002109\u3092\u5272\u308a\u5207\u308b\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\u306f\u6bd4\u8f03\u7684\u7c21\u5358\u3067\u3059\u3002\u307e\u305a\u3001p - 1\u306e2\u30685\u306e\u6210\u5206\u3092\u53d6\u308a\u51fa\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070p = 1920001\u3068\u3057\u3066\u3001p - 1 = 210 * 3 * 54\u3060\u304b\u3089\u30012\u306f10\u500b\u30015\u306f4\u500b\u3067\u3059\u30029\u3068\u306e\u5c0f\u3055\u3044\u65b9\u3092\u53d6\u3063\u3066\u3001e = 29 * 54\u304c\u3001 10e \u2261 1(mod p) \u3092\u6e80\u305f\u305b\u3070\u3001B(p)\u306fe\u306e\u7d04\u6570\u3060\u304b\u3089109\u3092\u5272\u308a\u5207\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u9006\u3082\u660e\u3089\u304b\u3067\u3059\u3002 40\u500b\u30670.09s\u300170\u500b\u306736s\u3067\u3057\u305f\u3002","url":"https://inamori.hateblo.jp/entry/20120414/p1","provider_url":"https://hatena.blog","title":"Project Euler 132","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Python"],"image_url":null}