{"author_name":"inamori","blog_url":"https://inamori.hateblo.jp/","published":"2011-07-28 00:00:00","blog_title":"inamori\u2019s diary","author_url":"https://blog.hatena.ne.jp/inamori/","width":"100%","description":"Problem 31\u3082\u3063\u3068\u901f\u304f\u306a\u3089\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u4f8b\u3048\u3070\u4e00\u822c\u9805\u3092\u6c42\u3081\u308b\u3068\u3044\u3046\u306e\u306f\u3069\u3046\u3067\u3057\u3087\u3046\u3002 Q1(x) = P1(x) \u306e\u4e00\u822c\u9805\u306fak(1) = 1\u3067\u3059\u306d\u3002 Q2(x) = P1(x)P2(x) \u306f\u3001k\u304c\u5947\u6570\u306a\u3089\u3001 ak(2) = (k + 1) / 2 \u306f\u3001k\u304c\u5076\u6570\u306a\u3089\u3001 ak(2) = k / 2 + 1 \u3068\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u306f\u7c21\u5358\u3067\u3059\u3002 Q5(x) = P1(x)P2(x)P5(x) \u306f\u3001k = 10q\u306a\u3089\u3001 ak(5) = a0(2) + a5(2) + ... + a10q(2) = (2 + 12 + ... + 10q + 2) / 2 + (6 + ... + 10q - \u2026","height":"190","title":"Scala\u3067Project Euler\uff0857\uff09","categories":["Scala"],"provider_url":"https://hatena.blog","version":"1.0","type":"rich","provider_name":"Hatena Blog","image_url":null,"url":"https://inamori.hateblo.jp/entry/20110728/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110728%2Fp1\" title=\"Scala\u3067Project Euler\uff0857\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>"}