1.2 KiB
1.2 KiB
id | challengeType | videoUrl | localeTitle |
---|---|---|---|
5900f5231000cf542c510034 | 5 | 问题438:多项式方程解的整数部分 |
Description
考虑以下两个条件:x1,...,xn都是真实的。如果x1,...,xn被排序,则⌊xi⌋= i,1≤i≤n。 (⌊·⌋:地板功能。)
在n = 4的情况下,有12个n元组的整数满足两个条件。我们将S(t)定义为t中整数绝对值的总和。对于n = 4,我们可以验证满足两个条件的所有n元组t的ΣS(t)= 2087。
找到ΣS(t)为n = 7。
Instructions
Tests
tests:
- text: <code>euler438()</code>应该返回2046409616809。
testString: assert.strictEqual(euler438(), 2046409616809);
Challenge Seed
function euler438() {
// Good luck!
return true;
}
euler438();
Solution
// solution required
/section>