28 lines
577 B
Markdown
28 lines
577 B
Markdown
---
|
||
id: 5900f5271000cf542c510039
|
||
title: 问题442:十一个整数
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
---
|
||
|
||
# --description--
|
||
|
||
如果整数的十进制扩展不包含任何表示11的幂的子串(除1之外),则称其为十一无码。
|
||
|
||
例如,2404和13431不包含11,而911和4121331不是。
|
||
|
||
令E(n)为第n个正十一无整数。 例如,E(3)= 3,E(200)= 213和E(500’000)= 531563。
|
||
|
||
找出E(1018)。
|
||
|
||
# --hints--
|
||
|
||
`euler442()`应该返回1295552661530920200。
|
||
|
||
```js
|
||
assert.strictEqual(euler442(), 1295552661530920200);
|
||
```
|
||
|
||
# --solutions--
|
||
|