<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>XELF</author_name>
  <author_url>https://blog.hatena.ne.jp/XELF/</author_url>
  <blog_title>迷宮調査報告書</blog_title>
  <blog_url>https://xelf.hatenadiary.org/</blog_url>
  <categories>
    <anon>雑記</anon>
    <anon>C#</anon>
  </categories>
  <description>試しに録画してテレビ番組「たけしのコマネチ大学数学科」(2006-05-26)を見てみました。 出題はヨセフスの問題(Josephus Problem)（継子立て）なるものでした。 １〜Ｎの番号のＮ枚のカードが順に並んた山がある まず上にある１枚を山の最後へまわす 次は上にある１枚を捨てる １枚になるまで(ステップ2-4を)繰り返すと最後に残るカードはどの番号のカードか？ さて、解法を飛ばして、２枚１組の場合はかなりコンピュータ向きの計算になるので、最終的な計算方法を出題の２枚１組に限定でコード(C#)にしてみました。 Solve2はBitScanReverse(BSR)ビット〜最下位ビット(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxelf.hatenadiary.org%2Fentry%2F20060527%2F1148738909&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>2006-05-27 23:08:29</published>
  <title> ヨセフスの問題（継子立て)</title>
  <type>rich</type>
  <url>https://xelf.hatenadiary.org/entry/20060527/1148738909</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
