ProjectEuler 479 Roots on the Rise - 拼圖
By Jake
at 2014-09-07T12:37
at 2014-09-07T12:37
Table of Contents
479. Roots on the Rise
https://projecteuler.net/problem=479
令 a_k, b_k, c_k 為方程式 1/x = (k/x)^2 (k+x^2) - kx 的三個解 (含實數及複數)。
例如當 k = 5 時,{a_k, b_k, c_k} 的近似值為 {5.727244, -0.363622+2.057397i,
-0.363622-2.057397i}。
令 S(n) = Σ(a_k+b_k)^p (b_k+c_k)^p (c_k+a_k)^p,
其中 p, k 為整數, 滿足 1≦p,k≦n。
有趣的是,S(n) 永遠是整數,如 S(4) = 51160。
求 S(10^6) mod 1 000 000 007。
--
'Oh, Harry, don't you see?' Hermione breathed. 'If she could have done
one thing to make absolutely sure that every single person in this school
will read your interview, it was banning it!'
---'Harry Potter and the order of the phoenix', P513
--
Tags:
拼圖
All Comments
By Donna
at 2014-09-08T16:57
at 2014-09-08T16:57
By Joseph
at 2014-09-12T01:26
at 2014-09-12T01:26
By Anthony
at 2014-09-14T05:30
at 2014-09-14T05:30
By Necoo
at 2014-09-15T13:53
at 2014-09-15T13:53
By Mia
at 2014-09-15T15:27
at 2014-09-15T15:27
By Thomas
at 2014-09-17T13:22
at 2014-09-17T13:22
Related Posts
三人持槍互射問題 變體
By Kumar
at 2014-09-05T17:41
at 2014-09-05T17:41
拼圖(紙質)市場全球產值
By Edward Lewis
at 2014-09-04T20:32
at 2014-09-04T20:32
Puzzleup 2014 (6) Harmonic Prisms
By Todd Johnson
at 2014-09-03T21:09
at 2014-09-03T21:09
囚犯抓豆子
By Liam
at 2014-09-03T12:16
at 2014-09-03T12:16
ProjectEuler 478 Mixtures
By Freda
at 2014-08-31T22:44
at 2014-08-31T22:44