Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-455-powers-with-trailing-digits.md

26 lines
631 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f5331000cf542c510046
title: 问题455使用尾随数字的权力
challengeType: 5
videoUrl: ''
---
# --description--
设fn是小于109的最大正整数x使得nx的最后9位数字形成数字x包括前导零或者如果不存在这样的整数则为零。
例如:
f4= 4117288964411728896 = ... 490411728896f10= 0 f157= 743757157743757 = ... 567000743757Σfn2≤n≤103= 442530011399查找Σfn 2≤n≤106。
# --hints--
`euler455()`应该返回450186511399999。
```js
assert.strictEqual(euler455(), 450186511399999);
```
# --solutions--