<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>Problem 45三角数は六角数を含むので、三角数は考えなくてもよいことになります。 単に五角数と六角数を昇順に並べてマージ法を使うのが簡単でしょう。 // Polygonal number def P(p :Int) :Stream[Long] = Stream.from(1).map(n =&gt; n * ((p - 2L) * n - p + 4) / 2) def coincident(s1 :Stream[Long], s2 :Stream[Long]) :Stream[Long] = (s1, s2) match { case (h1 #:: t1, h2 #:: t2) if h1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110823%2Fp1&quot; title=&quot;ScalaでProject Euler（75） - inamori’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-08-23 00:00:00</published>
  <title>ScalaでProject Euler（75）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20110823/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
