freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-346-strong-repunits.md

43 lines
872 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f4c71000cf542c50ffd8
title: 问题346强大的Repunits
challengeType: 5
videoUrl: ''
dashedName: problem-346-strong-repunits
---
# --description--
数字7是特殊的因为7是用基数2写的111用基数6写的是11即710 = 116 = 1112。换句话说7是至少两个碱基b> 1的重新排列。
我们将调用一个正整数该属性是一个强大的repunit。可以证实在50以下有8个强大的重新命令{1,7,13,15,21,31,40,43}。此外1000以下的所有强大的重新命令的总和等于15864。
找出1012以下所有强大的回购总和。
# --hints--
`euler346()`应该返回336108797689259260。
```js
assert.strictEqual(euler346(), 336108797689259260);
```
# --seed--
## --seed-contents--
```js
function euler346() {
return true;
}
euler346();
```
# --solutions--
```js
// solution required
```