Hi,
I have a puzzle that needs to be solved.
sum(k/(t+1) + k*2/(t+2) + k*3/(t+3) + k*4/(t+4) ... k*n/(t+n))
the n can be very large number, such as 10million
k and t are constants.
Is there any better approach to calculate the sum?
I can solve it using a loop in a computer, but it's not efficient.
Thank you so much for reading.
Cheers,
Eric
I have a puzzle that needs to be solved.
sum(k/(t+1) + k*2/(t+2) + k*3/(t+3) + k*4/(t+4) ... k*n/(t+n))
the n can be very large number, such as 10million
k and t are constants.
Is there any better approach to calculate the sum?
I can solve it using a loop in a computer, but it's not efficient.
Thank you so much for reading.
Cheers,
Eric