Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-377-sum-of-digits-experience-13.md
Oliver Eyton-Williams dec409a4bd fix: s/localeTitle/title/g
2020-10-06 23:10:08 +05:30

1.0 KiB
Raw Blame History

id, challengeType, videoUrl, title
id challengeType videoUrl title
5900f4e51000cf542c50fff8 5 问题377数字之和经验13

Description

有16个正整数它们的数字没有零并且数字和等于55,14,23,32,41,113,122,131,212,221,311,1112 1121年1211年2111年和1111年。他们的总和是17891。

设fn为所有正整数的和它们的数字不为零数字和等于n。

找到$ \ displaystyle \ sum_ {i = 1} ^ {17} f13 ^ i$。将最后9位数字作为答案。

Instructions

Tests

tests:
  - text: <code>euler377()</code>应该返回732385277。
    testString: assert.strictEqual(euler377(), 732385277);

Challenge Seed

function euler377() {
  // Good luck!
  return true;
}

euler377();

Solution

// solution required

/section>