2021-06-15 00:49:18 -07:00
---
id: 5900f4b11000cf542c50ffc3
2022-03-01 21:39:26 +05:30
title: 'Problema 324: Costruire una torre'
2021-06-15 00:49:18 -07:00
challengeType: 5
forumTopicId: 301981
dashedName: problem-324-building-a-tower
---
# --description--
2022-03-01 21:39:26 +05:30
Sia $f(n)$ il numero di modi in cui si può riempire una torre $3× 3× n$ con blocchi $2× 1× 1$. Hai il permesso di ruotare i blocchi in qualsiasi modo; tuttavia le rotazioni, le riflessioni ecc della torre stessa sono contati come distinti.
2021-06-15 00:49:18 -07:00
2022-03-01 21:39:26 +05:30
Per esempio (con $q = 100\\,000\\,007$):
2021-06-15 00:49:18 -07:00
2022-03-31 22:31:59 +05:30
$$\begin{align} & f(2) = 229, \\\\
& f(4) = 117\\,805, \\\\ & f(10)\bmod q = 96\\,149\\,360, \\\\
& f({10}^3)\bmod q = 24\\,806\\,056, \\\\ & f({10}^6)\bmod q = 30\\,808\\,124. \end{align}$$
2022-03-01 21:39:26 +05:30
Trova $f({10}^{10000})\bmod 100\\,000\\,007$.
2021-06-15 00:49:18 -07:00
# --hints--
2022-03-01 21:39:26 +05:30
`buildingTower()` dovrebbe restituire `96972774` .
2021-06-15 00:49:18 -07:00
```js
2022-03-01 21:39:26 +05:30
assert.strictEqual(buildingTower(), 96972774);
2021-06-15 00:49:18 -07:00
```
# --seed--
## --seed-contents--
```js
2022-03-01 21:39:26 +05:30
function buildingTower() {
2021-06-15 00:49:18 -07:00
return true;
}
2022-03-01 21:39:26 +05:30
buildingTower();
2021-06-15 00:49:18 -07:00
```
# --solutions--
```js
// solution required
```