validate successive numbers