2018-09-30 23:01:58 +01:00
---
id: 5900f5361000cf542c510049
title: 'Problem 458: Permutations of Project'
2020-11-27 19:02:05 +01:00
challengeType: 5
2019-08-05 09:17:33 -07:00
forumTopicId: 302132
2021-01-13 03:31:00 +01:00
dashedName: problem-458-permutations-of-project
2018-09-30 23:01:58 +01:00
---
2020-11-27 19:02:05 +01:00
# --description--
2021-07-30 17:20:31 +02:00
Consider the alphabet $A$ made out of the letters of the word `project` : $A = \\{c, e, j, o, p, r, t\\}$.
2020-11-27 19:02:05 +01:00
2021-07-30 17:20:31 +02:00
Let $T(n)$ be the number of strings of length $n$ consisting of letters from $A$ that do not have a substring that is one of the 5040 permutations of `project` .
2018-09-30 23:01:58 +01:00
2021-07-30 17:20:31 +02:00
$T(7) = 7^7 - 7! = 818\\,503$.
2018-09-30 23:01:58 +01:00
2021-07-30 17:20:31 +02:00
Find $T({10}^{12})$. Give the last 9 digits of your answer.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
# --hints--
2018-09-30 23:01:58 +01:00
2021-07-30 17:20:31 +02:00
`permutationsOfProject()` should return `423341841` .
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
```js
2021-07-30 17:20:31 +02:00
assert.strictEqual(permutationsOfProject(), 423341841);
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --seed--
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
## --seed-contents--
2018-09-30 23:01:58 +01:00
```js
2021-07-30 17:20:31 +02:00
function permutationsOfProject() {
2020-09-15 09:57:40 -07:00
2018-09-30 23:01:58 +01:00
return true;
}
2021-07-30 17:20:31 +02:00
permutationsOfProject();
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --solutions--
2018-09-30 23:01:58 +01:00
```js
// solution required
```