R Integer Division Problems