{"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090511%2Fp3\" title=\"Project Euler 108 - 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>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://inamori.hateblo.jp/entry/20090511/p3","author_name":"inamori","version":"1.0","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/index.php Q108. 1/x + 1/y = 1/n \u306e\u89e3(x, y > 0)\u306e\u500b\u6570\u304c1000\u3092\u8d85\u3048\u308b\u6700\u5c0f\u306en (x - n)(y - n) = n2\u3068\u306a\u308b\u304b\u3089\u3001n2\u306e\u7d04\u6570\u3092\u6570\u3048\u308c\u3070\u3088\u3044\u3002\u3042\u3068\u304b\u3089\u898b\u308b\u3088\u3046\u306b\u5bfe\u8c61\u3068\u306a\u308bn\u306f\u5076\u6570\u3060\u304b\u3089\u3001\u91cd\u8907\u3092\u8003\u3048\u3066\u3001\u7d04\u6570\u306f2001\u4ee5\u4e0a\u3042\u308c\u3070\u3088\u3044\u3002 n\u30921\u304b\u3089\u9806\u306b\u898b\u3066\u3044\u3063\u3066\u3082\u6c42\u307e\u308b\u304c\u3001\u6642\u9593\u304c\u304b\u304b\u308b\u3002\u9006\u306b\u7d20\u56e0\u6570\u5206\u89e3\u3057\u305f\u5f62\u304b\u3089\u898b\u3066\u3044\u304f\u3002 m = \u03a0piei\u306a\u3089\u3001m\u306e\u7d04\u6570\u306e\u500b\u6570\u306f\u03a0(ei + 1)\u3068\u306a\u308b\u3002\u7d04\u6570\u306e\u500b\u6570\u306b\u7d20\u6570\u306e\u5024\u81ea\u4f53\u306f\u95a2\u4fc2\u306a\u3044\u304b\u3089\u3001\u7d20\u6570\u306f\u5c0f\u3055\u3044\u3082\u306e\u304b\u3089\u4f7f\u3044\u3001e\u3082\u964d\u9806\u3068\u3059\u308c\u3070\u3088\u3044\u3002n\u2026","blog_url":"https://inamori.hateblo.jp/","title":"Project Euler 108","author_url":"https://blog.hatena.ne.jp/inamori/","type":"rich","categories":["\u6570\u5b66","Python"],"published":"2009-05-11 00:00:02","height":"190","blog_title":"inamori\u2019s diary","width":"100%"}