On the divisor and circle problems