ProjectEuler 484 Arithmetic Derivative - 拼圖
By Iris
at 2014-10-14T18:43
at 2014-10-14T18:43
Table of Contents
484. Arithmetic Derivative
http://projecteuler.net/problem=484
運算導數(Arithmetic Derivative)定義為:
● p'=1,適用於任何質數p
● 對於所有的整數a,b,則有(ab)'=a'*b+a*b'(萊布尼茲法則)
舉例,20'=24
試求出 1<k<=5*10^15的情況下,gcd(k,k')的總和
附註: gcd(x,y)表示為x與y的最大公因數
--
http://projecteuler.net/problem=484
運算導數(Arithmetic Derivative)定義為:
● p'=1,適用於任何質數p
● 對於所有的整數a,b,則有(ab)'=a'*b+a*b'(萊布尼茲法則)
舉例,20'=24
試求出 1<k<=5*10^15的情況下,gcd(k,k')的總和
附註: gcd(x,y)表示為x與y的最大公因數
--
Tags:
拼圖
All Comments
By Hamiltion
at 2014-10-19T13:32
at 2014-10-19T13:32
By Victoria
at 2014-10-21T02:15
at 2014-10-21T02:15
By William
at 2014-10-25T07:05
at 2014-10-25T07:05
Related Posts
雙信封paradox
By Franklin
at 2014-10-12T00:38
at 2014-10-12T00:38
雙信封paradox
By Noah
at 2014-10-09T09:20
at 2014-10-09T09:20
跪求拼圖解法!
By Olivia
at 2014-10-08T22:45
at 2014-10-08T22:45
Puzzleup 2014 (11) Squares
By Rebecca
at 2014-10-08T21:51
at 2014-10-08T21:51
跪求拼圖解法!
By Liam
at 2014-10-08T21:43
at 2014-10-08T21:43