<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>qnighy</author_name>
  <author_url>https://blog.hatena.ne.jp/qnighy/</author_url>
  <blog_title>簡潔なQ</blog_title>
  <blog_url>https://qnighy.hatenablog.com/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>Algorithm</anon>
  </categories>
  <description>ユークリッドの互除法を考える。 数a,bが与えられる。 1. 最初はx=a, y=bとする。 2. xをyで割った余りにする。 3. yをxで割った余りにする。 4. 2に戻る。 5. xかyが0になったときに、もう一方が最大公約数である。 ここで、この数x,yを、別の方法で表現することを考える。つまり x = a * x' + b * x'' y = a * y' + b * y''まず、最初の初期化では次のようになる。 x = a * 1 + b * 0 = a y = a * 0 + b * 1 = bまた、この形式を保持しながら、「余り」の計算を行うことが可能である。 xをyで割った余…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F20091230%2F1262173513&quot; title=&quot;超わかりやすい拡張ユークリッドの互除法 - 簡潔なQ&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>2009-12-30 20:45:13</published>
  <title>超わかりやすい拡張ユークリッドの互除法</title>
  <type>rich</type>
  <url>https://qnighy.hatenablog.com/entry/20091230/1262173513</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
