Find remainder, check if they equal