find the successor of the numbers