<?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>
    <anon>Scala</anon>
  </categories>
  <description>Problem 29単純に考えると99×99通りのべき乗があるのですが、重複があるのでそれより少ない数になります。どれだけ重複があるのかを考えるとこの問題は速く解けます。 例を考えましょう。 28 = 44 = 162 ここでダブってカウントしないように、大きい底から小さい底に移行できる数がいくつあるかを数えましょう（例えば上の例で、162→44 44→28ということです）。まず、N = 20で考えてみます。上で分かるように、底がべき乗になっている数に小さい底に移行できる可能性があります。20までのべき乗数は、4, 8, 9, 16です。4の場合、 42 = 24, 43 = 26, ... …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110719%2Fp1&quot; title=&quot;ScalaでProject Euler（50） - 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>2011-07-19 00:00:00</published>
  <title>ScalaでProject Euler（50）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20110719/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
