<?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>連分数に関する問題。Problem 57 - PukiWiki連分数で√2を求めた時、分子と分母の桁数が違う時の数を数える。 連分数だけじゃ面白くないから、ちょっと変わった感じにしてるみたい。 分数の計算ではまった。 1回目 1 + 1/2 2回目 1 + 1/(2 + 1/2) = 1 + 2/5 3回目 1 + 1/(2 + 2/5) = 1 + 5/12 分子と分母がぐりぐり回る感じになるみたい。 教訓。間違えたなと思った時は、紙に展開してみよう。 (define (problem57 n) (letrec ((nod (lambda (n) (if (zero? n) 0 (+ 1 (…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080517%2F1210955196&quot; title=&quot; Problem 57 - 連分数で√2 - ボクノス&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>2008-05-17 01:26:36</published>
  <title> Problem 57 - 連分数で√2</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20080517/1210955196</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
