{"url":"https://inamori.hateblo.jp/entry/20090510/p1","author_url":"https://blog.hatena.ne.jp/inamori/","blog_title":"inamori\u2019s diary","blog_url":"https://inamori.hateblo.jp/","provider_name":"Hatena Blog","author_name":"inamori","title":"Project Euler 100","published":"2009-05-10 00:00:00","type":"rich","width":"100%","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090510%2Fp1\" title=\"Project Euler 100 - 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>","categories":["\u6570\u5b66","Python"],"height":"190","provider_url":"https://hatena.blog","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/index.php Q100. \u9752\u3044\u30c7\u30a3\u30b9\u30af15\u679a\u3068\u8d64\u3044\u30c7\u30a3\u30b9\u30af6\u679a\u3092\u7528\u610f\u3057\u3066\u3001\u30e9\u30f3\u30c0\u30e0\u306b2\u679a\u53d6\u308a\u51fa\u3057\u3066\u4e21\u65b9\u9752\u3067\u3042\u308b\u78ba\u7387\u306f1/2\u3067\u3042\u308b\u3002\u3053\u306e\u3088\u3046\u306a\u7d44\u5408\u305b\u3067\u6700\u521d\u306b\u4e21\u65b9\u306e\u30c7\u30a3\u30b9\u30af\u3092\u3042\u308f\u305b\u30661\u5146\u3092\u8d85\u3048\u308b\u3068\u304d\u306e\u9752\u3044\u30c7\u30a3\u30b9\u30af\u306e\u679a\u6570\u3002 \u9752\u3044\u30c7\u30a3\u30b9\u30af\u3092m\u679a\u3001\u8d64\u3044\u30c7\u30a3\u30b9\u30af\u3092n\u679a\u3068\u3059\u308b\u3068\u3001 m/(m + n) * (m - 1)/(m + n - 1) = 1/2 m2 - 2mn - n2 - m + n = 0 a = (2m - 2n - 1) b = 2n a2 - 2b2 = 1 \u3068\u30da\u30eb\u65b9\u7a0b\u5f0f\u306b\u5e30\u7740\u3055\u308c\u308b\u3002\u9006\u5909\u63db\u306f\u3001 m = (a \u2026","image_url":null}