Sum of exponential

Правка en1, от Son_Nguyen, 2015-10-31 12:13:30

Hello, I have a problem need to solve: S(n) = 1^k + 2^k +..+n^k input: n<=10^9, k<=40 output: S(n)%(10^9+7). One more issue: how to calculate ((n^k)/x)%p which very big n and k. Thank for helping me.

Теги math

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Son_Nguyen 2015-10-31 12:13:59 12
en1 Английский Son_Nguyen 2015-10-31 12:13:30 224 Initial revision (published)