Divisor on an algebraic curve