<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pebble8888</author_name>
  <author_url>https://blog.hatena.ne.jp/pebble8888/</author_url>
  <blog_title>Pebble Coding</blog_title>
  <blog_url>https://pebble8888.hatenablog.com/</blog_url>
  <categories>
    <anon>整数論</anon>
  </categories>
  <description>pythonの再帰で実装したもの import sys def egcd(a, b): &quot;&quot;&quot;return (g, x, y) such that a*x + b*y = g = gcd(a, b)&quot;&quot;&quot; if a == 0: return (b, 0, 1) else: g, x, y = egcd(b % a, a) return (g, y - (b // a) * x, x) rustではタプルが使えるので、同じアルゴリズムでいけます。 Algorithm Implementation/Mathematics/Extended Euclidean algorithm - Wikiboo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2019%2F08%2F15%2F163326&quot; title=&quot;拡張ユークリッドの互除法 - Pebble Coding&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>https://chart.apis.google.com/chart?cht=tx&amp;chl=%20l_1%2C%20l_2</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-15 16:33:26</published>
  <title>拡張ユークリッドの互除法</title>
  <type>rich</type>
  <url>https://pebble8888.hatenablog.com/entry/2019/08/15/163326</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
