<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>数学</anon>
    <anon>アルゴリズム</anon>
  </categories>
  <description>Problem 375で使われている擬似乱数は sn+1 = sn2 mod d ここで法dはd = pqでpとqは4n+3型の素数です。これをBlum-Blum-Shubというそうです。 知りたいのはこの数列が戻ってくるかです。まず、初項に戻ってこないかもしれないのは当然です。自乗の剰余になれない数があるからです。例えば、 (d - m)2 = d2 - 2dm + m2 ≡ m2 (mod d) このようなペアがあるため、自乗の剰余になる数は約半分以下ということになります。 問題なのは2項目以降です。例えば、d = 77、s0 = 5としてみましょう。 5 -&gt; 25 -&gt; 9 -&gt; 4 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120320%2Fp1&quot; title=&quot;Blum-Blum-Shub - inamori’s diary&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-03-20 00:00:00</published>
  <title>Blum-Blum-Shub</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20120320/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
