find the missing integer with "fetch the jth bit of A[i]"