<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rhysd</author_name>
  <author_url>https://blog.hatena.ne.jp/rhysd/</author_url>
  <blog_title>はやくプログラムになりたい</blog_title>
  <blog_url>https://rhysd.hatenablog.com/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>エイダの誕生日らしいのでベルヌーイ数を求めるプログラムを書いてみた 前回のエントリでベルヌーイ数を馬鹿正直に求めるプログラムを書いた．正しく動くけど，20番目あたりからかなり計算に時間がかかるようになってしまった．B(n+1) を求めるのに B(n) .. B(0) を毎回計算しているので，遅いのは当然である． そこで，とりあえず小手先の小細工で少し高速化を図る． B(1) 以外の奇数番目の数が実行した範囲では全部 0 だったので少し調べてみると，どうやら B(3) 以降の奇数番目のベルヌーイ数はすべて 0 になるらしい． http://homepage3.nifty.com/y_sugi/g…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frhysd.hatenablog.com%2Fentry%2F2012%2F12%2F12%2F215159&quot; title=&quot; ベルヌーイ数を求める関数を少し高速化する - はやくプログラムになりたい&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>2012-12-12 21:51:59</published>
  <title> ベルヌーイ数を求める関数を少し高速化する</title>
  <type>rich</type>
  <url>https://rhysd.hatenablog.com/entry/2012/12/12/215159</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
