im trying to loop the equation y=l is a amount of numbers and dhm is the number = to a vector . i dont know how to make the 1/Xn loop with adding and changing the varibles. i have part of the code set up but i dont want to go d_mm1+d_mm2. Any suggestions?