2021-06-15 00:49:18 -07:00
---
id: 5900f5361000cf542c510049
2022-02-23 18:40:00 +05:30
title: 'Problema 458: Permutazioni di Project'
2021-06-15 00:49:18 -07:00
challengeType: 5
forumTopicId: 302132
dashedName: problem-458-permutations-of-project
---
# --description--
2022-02-23 18:40:00 +05:30
Considera l' alfabeto $A$ composto dalle lettere della parola `project` : $A = \\{c, e, j, o, p, r, t\\}$.
2021-06-15 00:49:18 -07:00
2022-02-23 18:40:00 +05:30
Sia $T(n)$ il numero di stringhe di lunghezza $n$ formate da lettere di $A$ che non hanno una sottostringa che è una delle 5040 permutazioni di `project` .
2021-06-15 00:49:18 -07:00
2022-02-23 18:40:00 +05:30
$T(7) = 7^7 - 7! = 818\\,503$.
2021-06-15 00:49:18 -07:00
2022-02-23 18:40:00 +05:30
Trova $T({10}^{12})$. Dai le ultime 9 cifre della tua risposta.
2021-06-15 00:49:18 -07:00
# --hints--
2022-02-23 18:40:00 +05:30
`permutationsOfProject()` dovrebbe restituire `423341841` .
2021-06-15 00:49:18 -07:00
```js
2022-02-23 18:40:00 +05:30
assert.strictEqual(permutationsOfProject(), 423341841);
2021-06-15 00:49:18 -07:00
```
# --seed--
## --seed-contents--
```js
2022-02-23 18:40:00 +05:30
function permutationsOfProject() {
2021-06-15 00:49:18 -07:00
return true;
}
2022-02-23 18:40:00 +05:30
permutationsOfProject();
2021-06-15 00:49:18 -07:00
```
# --solutions--
```js
// solution required
```