{"author_name":"inamori","title":"Project Euler 136","description":"Problem 136\u3053\u308c\u306f\u524d\u3005\u56de\u306e\u9762\u5012\u306a\u65b9\u6cd5\u304c\u4f7f\u3048\u307e\u3059\u3002n\u304c2\u3092\u542b\u307e\u306a\u3044\u3068\u304d\u30014\u3067\u5272\u3063\u3066\u4f59\u308a3\u306e\u7d20\u6570p\u306a\u3089\u7d04\u6570\u306f1\u3068p\u3067\u3059\u304c\u3001 y = p 4d - y = 1 \u306a\u3089 z = p - (p + 1) / 4 > 0 \u3067\u6210\u308a\u7acb\u3061\u307e\u3059\u304c\u3001 y = 1 4d - y = p \u306a\u3089 z = 1 - (p + 1) / 4 \u2264 0 \u3060\u304b\u3089\u6210\u308a\u7acb\u3061\u307e\u305b\u3093\u3002\u3088\u3063\u3066\u3061\u3087\u3046\u30691\u7d44\u3060\u3051\u89e3\u304c\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002 n\u304c2\u3092\u542b\u307e\u306a\u3044\u3067\u5408\u6210\u6570\u306e\u3068\u304d\u30014\u3067\u5272\u3063\u3066\u4f59\u308a\u304c1\u306a\u3089\u89e3\u306f0\u3001 3\u306a\u3089\u5fc5\u305a2\u3064\u4ee5\u4e0a\u306e\u89e3\u304c\u3042\u308a\u307e\u3059\u3002 n\u304c2\u3092\u542b\u3080\u3068\u304d\u3082\u307b\u307c\u540c\u69d8\u3067\u3059\u30022\u3092\u3061\u3087\u3046\u30692\u3064\u542b\u3080\u3068\u304d\u3001n = 4p\u306a\u3089\u89e3\u304c1\u3064\u3067\u3059\u30022\u3092\u3061\u3087\u3046\u30694\u2026","type":"rich","provider_name":"Hatena Blog","image_url":null,"provider_url":"https://hatena.blog","blog_title":"inamori\u2019s diary","blog_url":"https://inamori.hateblo.jp/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120423%2Fp1\" title=\"Project Euler 136 - 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>","width":"100%","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Python"],"published":"2012-04-23 00:00:00","author_url":"https://blog.hatena.ne.jp/inamori/","url":"https://inamori.hateblo.jp/entry/20120423/p1","height":"190"}