Sum Random Series

y = 0
x = 0
while true:
    y = y + 1
    x = x + y {1/2} x
end