divisor on an algebraic curve