--- id: 5900f5361000cf542c510049 challengeType: 5 title: 'Problem 458: Permutations of Project' videoUrl: '' localeTitle: 问题458:项目的排列 --- ## Description 考虑由“项目”一词的字母组成的字母A:A = {c,e,j,o,p,r,t}。令T(n)为长度为n的字符串数,该字符串由来自A的字母组成,其中没有子字符串,该子字符串是“项目”的5040个排列之一。 T(7)= 77-7!= 818503。 找到T(1012)。给出答案的最后9位数字。 ## Instructions ## Tests ```yml tests: - text: euler458()应该返回423341841。 testString: 'assert.strictEqual(euler458(), 423341841, "euler458() should return 423341841.");' ``` ## Challenge Seed ```js function euler458() { // Good luck! return true; } euler458(); ``` ## Solution ```js // solution required ```
T(7)= 77-7!= 818503。
找到T(1012)。给出答案的最后9位数字。
euler458()