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