Dim n As Long, w As Single
w = 0
n= 1
Do While n * (n + 1) < 1000000
w = w + 1 / (n* (n + 1))
n=n + 1
Loop
Print w,n