{"title":"Scala\u3067Project Euler\uff08141\uff09","categories":["Scala"],"width":"100%","type":"rich","blog_title":"inamori\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120209%2Fp1\" title=\"Scala\u3067Project Euler\uff08141\uff09 - 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_url":"https://hatena.blog","height":"190","provider_name":"Hatena Blog","published":"2012-02-09 00:00:00","description":"Problem 94\u7b49\u8fba\u4ee5\u5916\u306e\u8fba\u306e\u9577\u3055\u306f\u5076\u6570\u3067\u3059\u3002\u5947\u6570\u3060\u3068\u3059\u308b\u3068\u4e09\u89d2\u5f62\u3092\u5bfe\u79f0\u8ef8\u3067\u534a\u5206\u306b\u5272\u3063\u305f\u4e09\u89d2\u5f62\u306e\u5404\u8fba\u30922\u500d\u3057\u305f\u76f4\u89d2\u4e09\u89d2\u5f62\u306e\u659c\u8fba\u306f\u5076\u6570\u3067\u3001\u5225\u306e\u8fba\u306f\u5947\u6570\u3067\u3059\u3002\u305d\u3046\u3059\u308b\u3068\u3082\u3046\u4e00\u3064\u306e\u8fba\u306e\u5e73\u65b9\u306f4\u306e\u5270\u4f59\u304c3\u3068\u306a\u3063\u3066\u77db\u76fe\u3067\u3059\u3002\u305d\u3053\u3067\u5148\u307b\u3069\u306e\u8fba\u30922b\u3068\u3057\u3066\u7b49\u8fba\u3092a\u3068\u3059\u308b\u3068\u3001 a = 2b \u00b1 1 \u3067\u3059\u3002\u534a\u5206\u306e\u4e09\u89d2\u5f62\u306e\u3082\u3046\u4e00\u3064\u306e\u8fba\u3092h\u3068\u3059\u308b\u3068\u3001 a2 = b2 + h2 (2b \u00b1 1)2 = b2 + h2 3b2 \u00b14b + 1 = h2 (3b \u00b1 2)2 - 3h2 = 1 \u3068Pell\u65b9\u7a0b\u5f0f\u306b\u306a\u308a\u307e\u3059\u3002x2 - 3y2 = 1\u306e\u6574\u6570\u89e3\u306fx\u306f\u5fc5\u305a3\u306e\u5270\u4f59\u304c1\u304b2\u3067\u3059\u3002\u3060\u304b\u3089\u30013b \u00b1 2\u306f\u6574\u6570\u306b\u6210\u308a\u2026","image_url":null,"url":"https://inamori.hateblo.jp/entry/20120209/p1","blog_url":"https://inamori.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/inamori/","author_name":"inamori","version":"1.0"}