freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-129-repunit-divisib...

39 lines
814 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: 5900f3ef1000cf542c50ff01
title: 问题129重新划分可分性
challengeType: 5
videoUrl: ''
dashedName: problem-129-repunit-divisibility
---
# --description--
完全由1组成的数字称为repunit。我们将Rk定义为长度k的重新定位;例如R6= 111111.假设n是正整数且GCDn10= 1则可以证明总是存在一个值k其中Rk可被n整除让An成为k的最小值;例如A7= 6且A41= 5.An首先超过10的n的最小值是17.求出An首先超过1的n的最小值 - 百万。
# --hints--
`euler129()`应该返回1000023。
```js
assert.strictEqual(euler129(), 1000023);
```
# --seed--
## --seed-contents--
```js
function euler129() {
return true;
}
euler129();
```
# --solutions--
```js
// solution required
```