← Complete problem index

PROJECT EULER · #0458

Permutations of Project

Statement only · SolvedOriginal problem ↗

Consider the alphabet A made out of the letters of the word "project": A={c,e,j,o,p,r,t}.
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".

T(7)=777!=818503.

Find T(1012). Give the last 9 digits of your answer.

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.