<?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>
  </categories>
  <description>https://projecteuler.net/problem=100トータルのディスクの数をn、青いディスクの数をmとすると、 これを変形して、 これはPell方程式です。解は、 と書けます。 import sys #################### process #################### # x^2 - 2y^2 = -1 fn next_solution(x: Int, y: Int) -&gt; Tuple[Int, Int]: return (x*3 + y*4, x*2 + y*3) fn f(N: Int) -&gt; Int: # (2n-1)^2 - 2(2m-…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2025%2F02%2F01%2F090711&quot; title=&quot;MojoでProject Euler 100 - 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>2025-02-01 09:07:11</published>
  <title>MojoでProject Euler 100</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/2025/02/01/090711</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
