find the distance CQ if i = 0