Determine factor using factor theorem (#306)