<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kyopro_friends</author_name>
  <author_url>https://blog.hatena.ne.jp/kyopro_friends/</author_url>
  <blog_title>kyopro_friends’ diary</blog_title>
  <blog_url>https://kyopro-friends.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>スナネコです。拡張GCDについての質問に答えます。問題： 以下のように実装された extgcdがある。 整数 が を満たし、extgcd(a, b) の返り値を としたとき、 が成り立つことを示せ。 def extgcd(a, b): # ax+by=gcd(x,y) を満たす (x,y) を返す if b == 0: return (1, 0) X, Y = extgcd(b, a % b) x = Y y = X - a // b * Y return (x, y) extgcd(a, b) が「 を満たす整数 を返すこと」の証明は省略します。最初に補題を示しておきます。 補題★： 0 で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkyopro-friends.hatenablog.com%2Fentry%2F2024%2F03%2F18%2F192821&quot; title=&quot;拡張GCDについて - kyopro_friends’ 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>2024-03-18 19:28:21</published>
  <title>拡張GCDについて</title>
  <type>rich</type>
  <url>https://kyopro-friends.hatenablog.com/entry/2024/03/18/192821</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
