<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubyco</author_name>
  <author_url>https://blog.hatena.ne.jp/rubyco/</author_url>
  <blog_title>rubyco（るびこ）の日記</blog_title>
  <blog_url>https://rubyco.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>epicsさんの続・パスカルの三角形の下の方に「挫折した方法」というのがあったので、そこから発展させてみました。ちょっと発想を変えまして…。 (1..9).inject([[1]]) {|c, n| c &lt;&lt; eval(c[n - 1].inject(&quot;[0+&quot;) {|s, k| s + &quot;#{k},#{k}+&quot;} + &quot;0]&quot;) }.each {|line| p line }だめかしらん♪ 実行結果です。 [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…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubyco.hatenadiary.org%2Fentry%2F20060601%2Fpascal&quot; title=&quot;パスカルの三角形、もう少し - rubyco（るびこ）の日記&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>2006-06-01 00:00:00</published>
  <title>パスカルの三角形、もう少し</title>
  <type>rich</type>
  <url>https://rubyco.hatenadiary.org/entry/20060601/pascal</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
