Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-377-sum-of-digits-experience-13.md
2022-01-23 00:08:20 +09:00

928 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f4e51000cf542c50fff8 問題 377: 各位の和 - 13 に注目 5 302039 problem-377-sum-of-digits-experience-13

--description--

いずれの桁も 0 ではなく各位の和が 5 に等しい正の整数は、次の 16 個です。

5, 14, 23, 32, 41, 113, 122, 131, 212, 221, 311, 1112, 1121, 1211, 2111, 11111

これらの和は 17891 になります。

いずれの桁も 0 ではなく各位の和が n に等しい正の整数の和を、f(n) とします。

\displaystyle\sum_{i=1}^{17} f(13^i) を求めなさい。 下位 9 桁を答えること。

--hints--

experience13()732385277 を返す必要があります。

assert.strictEqual(experience13(), 732385277);

--seed--

--seed-contents--

function experience13() {

  return true;
}

experience13();

--solutions--

// solution required