For a discrete function , the summatory function is defined by
where 
 is the domain of the function.
 
	    
	
    
Weisstein, Eric W. "Summatory Function." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/SummatoryFunction.html