sum 1/n better algorithm | ScratchStats