* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
1.1 KiB
1.1 KiB
id, title, challengeType, videoUrl, dashedName
id | title | challengeType | videoUrl | dashedName |
---|---|---|---|---|
5900f5131000cf542c510025 | 问题422:双曲线上的点序列 | 5 | problem-422-sequence-of-points-on-a-hyperbola |
--description--
假设H是由等式12x2 + 7xy-12y2 = 625定义的双曲线。
接下来,将X定义为点(7,1)。 可以看出X在H中。
现在,我们将H中的点序列{Pi:i≥1}定义为: P1 =(13,61/4)。 P2 =(-43/6,-4)。 对于i> 2,Pi是H中与Pi-1不同的唯一点,因此线PiPi-1与线Pi-2X平行。 可以证明Pi是定义明确的,并且其坐标始终是有理的。 您得到P3 =(-19/2,-229/24),P4 =(1267/144,-37/12)和P7 =(17194218091/143327232,274748766781/1719926784)。
用以下格式找到n = 1114的Pn:如果Pn =(a / b,c / d),其中分数是最低项,而分母是正数,则答案是(a + b + c + d)mod 1 000 007。
对于n = 7,答案应该是:806236837。
--hints--
euler422()
应该返回92060460。
assert.strictEqual(euler422(), 92060460);
--seed--
--seed-contents--
function euler422() {
return true;
}
euler422();
--solutions--
// solution required