56 lines
2.0 KiB
Markdown
56 lines
2.0 KiB
Markdown
---
|
||
id: 5900f41a1000cf542c50ff2d
|
||
challengeType: 5
|
||
title: 'Problem 174: Counting the number of "hollow" square laminae that can form one, two, three, ... distinct arrangements'
|
||
videoUrl: ''
|
||
localeTitle: 'Задача 174: подсчет количества «полой» квадратной пластинки, которая может образовывать один, два, три, ... отдельных устройства'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> Мы будем определять квадратную пластинку как квадратный контур с квадратным «отверстием», чтобы форма обладала вертикальной и горизонтальной симметрией. Учитывая восемь плиток, можно сформировать пластинку только одним способом: квадрат 3x3 с отверстием 1x1 посередине. Однако, используя тридцать две плитки, можно сформировать две отличные пластинки. <p> Если t представляет количество используемых плиток, мы будем говорить, что t = 8 - тип L (1), а t = 32 - тип L (2). Пусть N (n) - число t ≤ 1000000, так что t - тип L (n); например, N (15) = 832. Что такое Σ N (n) для 1 ≤ n ≤ 10? </p></section>
|
||
|
||
## Instructions
|
||
<section id="instructions">
|
||
</section>
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: <code>euler174()</code> должен вернуть 209566.
|
||
testString: 'assert.strictEqual(euler174(), 209566, "<code>euler174()</code> should return 209566.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler174() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler174();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|