<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>Scheme</anon>
  </categories>
  <description>やっぱり、ひげぽんと同じように反復が解けなかった・・・。 問題1.11 フィボナッチ強力版の登場です。ボスクラス。n n &gt;= 3の時、f(n) = f(n - 1) + 2f(n - 2) + 3f(n - 3) となる関数を再帰と反復で計算する手続きを書け。再帰は一瞬で解けた。 ; 再帰 (define (f n) (if (&lt; n 3) n (+ (f (- n 1)) (* (f (- n 2)) 2) (* (f (- n 3)) 3)))) 反復は終端の処理が判らず、答えを見た。 ; 反復 (define (f n) (define (iter a b c count) (cond…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070530%2F1180478652&quot; title=&quot; SICPを読む(12) 問題1.11 - 1.15 やっぱり反復が・・・。 - ボクノス&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>2007-05-30 07:44:12</published>
  <title> SICPを読む(12) 問題1.11 - 1.15 やっぱり反復が・・・。</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20070530/1180478652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
