ProjectEuler 487 Sums of power sums - 拼圖

By Lydia
at 2014-11-05T23:31
at 2014-11-05T23:31
Table of Contents
487. Sums of power sums
https://projecteuler.net/problem=487
令f_k(n)為前n個自然數的k次方和。
例如,f_2(10) = 1^2 + 2^2 + 3^2 + 4^2 + 5^2 + 6^2 + 7^2 + 8^2 + 9^2 + 10^2
= 385。
令S_k(n)為f_k(i)對1≦i≦n的和。例如,S_4(100) = 35375333830。
令T_k(n,p)為S_k(n)除以p的餘數。
請求出ΣT_10000(10^12,p)的和,其中p的範圍為介於2‧10^9和2‧10^9+2000之間的
所有質數。
--
https://projecteuler.net/problem=487
令f_k(n)為前n個自然數的k次方和。
例如,f_2(10) = 1^2 + 2^2 + 3^2 + 4^2 + 5^2 + 6^2 + 7^2 + 8^2 + 9^2 + 10^2
= 385。
令S_k(n)為f_k(i)對1≦i≦n的和。例如,S_4(100) = 35375333830。
令T_k(n,p)為S_k(n)除以p的餘數。
請求出ΣT_10000(10^12,p)的和,其中p的範圍為介於2‧10^9和2‧10^9+2000之間的
所有質數。
--
Tags:
拼圖
All Comments
Related Posts
ProjectEuler 485 Maximum number of div

By Jake
at 2014-11-05T23:10
at 2014-11-05T23:10
頂好-可口可樂飲品滿88元送+59元送拼圖

By Caitlin
at 2014-11-04T15:36
at 2014-11-04T15:36
拼圖總動員奇摩商城滿額折扣

By Harry
at 2014-11-03T16:55
at 2014-11-03T16:55
進入拼圖的世界…

By Heather
at 2014-11-03T16:33
at 2014-11-03T16:33
拼圖收納及乾燥劑保存

By Catherine
at 2014-11-03T15:50
at 2014-11-03T15:50