Any arithmetic progression has the nice property that the "average" value of [math]a_n, a_{n+1}, \cdot\cdot\cdot, a_m[/itex] is the average of the two end vaues,

. Here, the common difference is 10 so

. The last, "n"th piece, has length

. The average of the first and last piece, and so the average length of all pieces, is [math](u_1+ u_1+ 10(n-1))/2= u_1+ 5(n-1)[/itex]. The length of all the pieces together, then, is

and that must be equal to the length of the original piece of wire, 5000:

. You can solve that for

as a function of n and so get

as a function of i and n. You can use the same "averaging" idea to get the total length of the first i pieces as a function of i and n.