63 lines
1.4 KiB
Markdown
63 lines
1.4 KiB
Markdown
![]() |
---
|
||
|
id: 5
|
||
|
localeTitle: 5900f41a1000cf542c50ff2d
|
||
|
challengeType: 5
|
||
|
title: 'Problem 174: Counting the number of "hollow" square laminae that can form one, two, three, ... distinct arrangements'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
Definiremos una lámina cuadrada como un contorno cuadrado con un "orificio" cuadrado de modo que la forma posea simetría vertical y horizontal.
|
||
|
Dadas ocho fichas es posible formar una lámina de una sola manera: cuadrado 3x3 con un orificio 1x1 en el medio. Sin embargo, utilizando treinta y dos baldosas es posible formar dos láminas distintas.
|
||
|
|
||
|
|
||
|
Si t representa el número de mosaicos utilizados, diremos que t = 8 es el tipo L (1) y t = 32 es el tipo L (2).
|
||
|
Sea N (n) el número de t ≤ 1000000, de manera que t sea tipo L (n); por ejemplo, N (15) = 832.
|
||
|
¿Qué es ∑ N (n) para 1 ≤ n ≤ 10?
|
||
|
</section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id='instructions'>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler174()</code> debe devolver 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>
|