{"provider_url":"https://hatena.blog","version":"1.0","published":"2008-11-23 20:38:41","description":"http://projecteuler.net/index.php?section=problems&id=218 \u3064\u3044\u306b100\u554f\u3002 \u306b\u5bfe\u3057\u3066 \u3068\u3059\u308b\u3068 \u306epell equation\u306b\u3002 \u3068\u3053\u308d\u3067\u3001pell equation\u306e\u89e3\u306f\u6700\u5c0f\u306e\u89e3\u304b\u3089\u9806\u306b\u751f\u6210\u3067\u304d\u308b\u307f\u305f\u3044\u3060\u3051\u3069 \u306a\u3093\u3067\uff1f\u306f\u3058\u3081\u306e\u89e3\u3092n\u4e57\u3057\u3066\u3082\u89e3\u306a\u306e\u306f\u308f\u304b\u308b\u3051\u3069 \u9593\u306b\u89e3\u304c\u306a\u3044\u3063\u3066\u306e\u304c\u306a\u30fc import Data.List naive m = [(n,d)|d<-[1..m],n<-[div d 2..d],2*n*(n-1)==d*(d-1)] next (x,y) = (3*x+4*y,2*x+3*y) toDisc (x,y) = (\u2026","categories":["Project Euler","Haskell"],"title":"Problem 100","type":"rich","width":"100%","author_url":"https://blog.hatena.ne.jp/jeneshicc/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20081123%2F1227440321\" title=\"Problem 100 - \u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","author_name":"jeneshicc","provider_name":"Hatena Blog","height":"190","blog_url":"https://jeneshicc.hatenadiary.org/","url":"https://jeneshicc.hatenadiary.org/entry/20081123/1227440321","image_url":null}