mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-08 09:00:38 -04:00
1.5 KiB
1.5 KiB
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f5021000cf542c510014 | Problema 405: Una piastrellatura rettangolare | 1 | 302073 | problem-405-a-rectangular-tiling |
--description--
Vogliamo piastrellare un rettangolo la cui lunghezza è il doppio della sua larghezza.
Sia T(0) la piastrellatura composta da un singolo rettangolo.
Per n > 0, T(n) sia ottenuto da da T( n- 1) sostituendo tutte le piastrelle nel modo seguente:
La seguente animazione mostra la piastrellatura T(n) per n da 0 a 5:
Sia f(n) il numero di punti in cui quattro piastrelle si incontrano in T(n). Per esempio, f(1) = 0, f(4) = 82 e f({10}^9)\bmod {17}^7 = 126\\,897\\,180.
Trova f({10}^k) per k = {10}^{18}, dai la tua risposta nel formato {17}^7.
--hints--
rectangularTiling() dovrebbe restituire 237696125.
assert.strictEqual(rectangularTiling(), 237696125);
--seed--
--seed-contents--
function rectangularTiling() {
return true;
}
rectangularTiling();
--solutions--
// solution required