Project Euler 474 Last digits of divis - 拼圖
By Aaliyah
at 2014-06-01T14:52
at 2014-06-01T14:52
Table of Contents
474. Last digits of divisors
http://projecteuler.net/problem=474
我們定義函數F(n,d)為n的因數中,末幾位數為d的個數。
例如:
F(84,4) = 3.
因為84的因數有:{1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84}
當中有三個數{4,14,84}末位數為4
除此之外,我們也能夠驗證出F(12!,12) = 11 以及 F(50!,123) = 17888
請求出 F(1000000!,65432) 除以 (10^16 + 61) 的餘數
--
http://projecteuler.net/problem=474
我們定義函數F(n,d)為n的因數中,末幾位數為d的個數。
例如:
F(84,4) = 3.
因為84的因數有:{1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84}
當中有三個數{4,14,84}末位數為4
除此之外,我們也能夠驗證出F(12!,12) = 11 以及 F(50!,123) = 17888
請求出 F(1000000!,65432) 除以 (10^16 + 61) 的餘數
--
Tags:
拼圖
All Comments
By Lily
at 2014-06-02T21:19
at 2014-06-02T21:19
By Lydia
at 2014-06-03T06:06
at 2014-06-03T06:06
By Yedda
at 2014-06-05T16:32
at 2014-06-05T16:32
By Gary
at 2014-06-09T06:23
at 2014-06-09T06:23
Related Posts
比賽問題求解法
By Frederic
at 2014-05-29T04:03
at 2014-05-29T04:03
幾個問題7
By Damian
at 2014-05-28T12:12
at 2014-05-28T12:12
符號數字 看不懂...
By Skylar DavisLinda
at 2014-05-26T10:43
at 2014-05-26T10:43
請問各位這種情況該怎麼處理?
By Ingrid
at 2014-05-25T23:37
at 2014-05-25T23:37
ProjectEuler 473 Phigital number base
By Xanthe
at 2014-05-25T23:19
at 2014-05-25T23:19