- #1
redount2k9
- 12
- 0
Hi everyone!
How to solve this: S(n) = { (a+b)/n } + { (2a+b)/n } + { (3a+b)/n } + ... + { (na+b)/n } where {x} represents fractional part of x. a,b,n are natural non-null numbers and (a,n)=1.
I don`t need only an answer, i need a good solution.
Thanks!
How to solve this: S(n) = { (a+b)/n } + { (2a+b)/n } + { (3a+b)/n } + ... + { (na+b)/n } where {x} represents fractional part of x. a,b,n are natural non-null numbers and (a,n)=1.
I don`t need only an answer, i need a good solution.
Thanks!