← RoseCode

ROSECODE 444

A big sum 2

liuguangxi · Math ·

Let S(m,n)=∑k=1m∑x=1n(xk⋅⌊πxk⌋k) where ⌊x⌋ is the largest integer less than or equal to x.

You are given S(1,10)=1182, S(3,100)=16716537706541 and S(10,104)mod1000000007=211872856.

Find S(20,1020)mod1000000007.


Hint: solve Problem 399 - A Big Sum first and there are some clues in the secret forum.