{"author_name":"obelisk2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2018%2F01%2F31%2F225010\" title=\"\u30d1\u30b9\u30ab\u30eb\u306e\u4e09\u89d2\u5f62\uff08Ruby\uff09 - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u30d1\u30b9\u30ab\u30eb\u306e\u4e09\u89d2\u5f62\uff08Ruby\uff09","provider_name":"Hatena Blog","width":"100%","type":"rich","blog_url":"https://obelisk.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/obelisk2/","version":"1.0","categories":["Ruby","\u6570\u5b66","\u304b\u3093\u305f\u3093\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0"],"provider_url":"https://hatena.blog","url":"https://obelisk.hatenablog.com/entry/2018/01/31/225010","height":"190","published":"2018-01-31 22:50:10","blog_title":"Camera Obscura","image_url":null,"description":"\u30d1\u30b9\u30ab\u30eb\u306e\u4e09\u89d2\u5f62\u3068\u306f\u3001\u3053\u3093\u306a\u611f\u3058\u306e\u3082\u306e\u3067\u3059\u3002 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 \u898f\u5247\u6027\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002\u591a\u9805\u5f0f (a + b)n \u3092\u5c55\u958b\u3059\u308b\u3068\u3001\u4fc2\u6570\u304c\u3053\u3093\u306a\u98a8\u306b\u4e26\u3073\u307e\u3059\u3002Ruby \u3067\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3063\u307d\u304f\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002\u7d50\u69cb\u304d\u308c\u3044\u306b\u66f8\u3051\u307e\u3059\u3002 pascal = ->(n) { each_cons = ->(ar) { (ar.size < 2) ? [] : [ar[0] + ar[1]] + each_cons.(ar.drop(1)) } n.zero? ? [\u2026"}