<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtsuyugu</author_name>
  <author_url>https://blog.hatena.ne.jp/mtsuyugu/</author_url>
  <blog_title>mtsuyuguの日記</blog_title>
  <blog_url>https://mtsuyugu.hatenadiary.org/</blog_url>
  <categories>
    <anon>scheme</anon>
    <anon>euler</anon>
  </categories>
  <description>Problem 28 - Project Euler 21 22 23 24 25 20 7 8 9 10 19 6 1 2 11 18 5 4 3 12 17 16 15 14 13こういう風に正の整数を螺旋状に 1001×1001 のサイズまで並べていったとき対角線上にある数の合計を求める問題。まず n (n&gt;1) 週目の数字の並びを考えてみる。n 週目の四角の一辺にある数は 2n-1 個で、最後の数は (2n-1)^2 だから、それぞれの角の合計はΣ{(2n-1)^2 - 2k(n-1)} (k = 0, 1, 2, 3)になる。1001 = 2n - 1 を解くと n = 501 だか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmtsuyugu.hatenadiary.org%2Fentry%2F20080712%2F1215873745&quot; title=&quot;problem 28 - mtsuyuguの日記&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>2008-07-12 23:42:25</published>
  <title>problem 28</title>
  <type>rich</type>
  <url>https://mtsuyugu.hatenadiary.org/entry/20080712/1215873745</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
