{"blog_title":"inamori\u2019s diary","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090518%2Fp1\" title=\"Project Euler 140 - 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","width":"100%","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/index.php Q140. Gn\u3092G1 = 1\u3001G2 = 4\u3001Gk = Gk-1 + Gk-2\u3001AG(x) = xG1 + x2G2 + x3G3 + ...\u3068\u3059\u308b\u3002 n = AG(x)\u304c\u81ea\u7136\u6570\u3067\u3042\u308bx\u304c\u6709\u7406\u6570\u3067\u3042\u308b\u3088\u3046\u306an\u306e30\u756a\u76ee\u3002 Q137\u3068\u540c\u3058\u3088\u3046\u306b\u3059\u308b\u3068\u3001 (5A + 7)2 - 5m2 = 44 \u3068\u306a\u308b\u304c\u3001\u3053\u306e\u89e3\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044\u3002 \u3057\u304b\u305f\u304c\u306a\u3044\u306e\u3067\u3001\u3042\u308b\u7a0b\u5ea6\u5c0f\u3055\u3044\u89e3\u3092\u3057\u3089\u307f\u3064\u3076\u3057\u306b\u63a2\u3057\u3066\u3001\u3042\u3068\u306f 92 - 5 * 42 = 1 \u3092\u5229\u7528\u3057\u305f\u3002","categories":["\u6570\u5b66","Python"],"blog_url":"https://inamori.hateblo.jp/","title":"Project Euler 140","published":"2009-05-18 00:00:00","height":"190","type":"rich","author_url":"https://blog.hatena.ne.jp/inamori/","version":"1.0","author_name":"inamori","url":"https://inamori.hateblo.jp/entry/20090518/p1","provider_url":"https://hatena.blog"}