{"provider_url":"https://hatena.blog","author_name":"inamori","provider_name":"Hatena Blog","blog_title":"inamori\u2019s diary","categories":["Scala"],"published":"2011-11-16 00:00:00","description":"Problem 66 x - Dy2 = 1 \u3053\u308c\u3092Pell\u65b9\u7a0b\u5f0f\u3068\u547c\u3073\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u5fc5\u305a\u6574\u6570\u89e3\u304c\u3042\u308b\u3053\u3068\u304c\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u6574\u6570\u89e3\u304c\u5927\u304d\u304f\u306a\u308b\u3068\u3001 x/y\u221a(1-x-2) = \u221aD \u3088\u308ax/y\u306f\u221aD\u306e\u8fd1\u3065\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u221aD\u306e\u9023\u5206\u6570\u5c55\u958b\u3068\u540c\u3058\u3067\u3059\u306d\u3002\u5b9f\u969b\u3001Pell\u65b9\u7a0b\u5f0f\u306e\u89e3\u306f\u9023\u5206\u6570\u5c55\u958b\u3092\u9014\u4e2d\u3067\u6253\u3061\u5207\u3063\u305f\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u221a3\u3092\u9023\u5206\u6570\u5c55\u958b\u3057\u3066\u3044\u304f\u3068\u3001 1 1 + 1 / 1 = 2 1 + 1 / (1 + 1 / 2) = 5 / 3 \u2026 \u3067\u3059\u304c\u30012\u306e\u5206\u5b50\u3092x\u3001\u5206\u6bcd\u3092y\u3068\u3059\u308b\u3068\u3001Pell\u65b9\u7a0b\u5f0f\u304c\u6210\u308a\u7acb\u3064\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u9023\u5206\u6570\u5c55\u958b\u3057\u3066\u3044\u304f\u3068\u3044\u3064\u304b\u521d\u671f\u89e3\u304c\u6c42\u307e\u308a\u307e\u3059\u3002 \u3053\u306e\u2026","type":"rich","image_url":null,"height":"190","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20111116%2Fp1\" title=\"Scala\u3067Project Euler\uff08100\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>","blog_url":"https://inamori.hateblo.jp/","version":"1.0","author_url":"https://blog.hatena.ne.jp/inamori/","title":"Scala\u3067Project Euler\uff08100\uff09","url":"https://inamori.hateblo.jp/entry/20111116/p1"}