Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Ashik_01's blog

By Ashik_01, history, 7 years ago, In English

How to use the modulo operation on (n/2)*(2a+(n-1)d).I have to give the summation of the series modulo 10^9+7.Please help me.

  • Vote: I like it
  • +5
  • Vote: I do not like it

| Write comment?
»
7 years ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

(n/2)*(2a+(n-1)d) % 1000000007

problem solved