Scaling Law for the Greatest Common Divisor