How to compute the value of [G(1,x)+G(2,x)+G(3,x)+....+G(x,x)]$$[\gcd(1,x)+\gcd(2,x)+\gcd(3,x)+....+\gcd(x,x)]$$ efficiently? When x can be as large as million.G = greatest common divisor.
Post Closed as "Not suitable for this site" by Lucia, Stopple, András Bátkai, Wolfgang, Emil Jeřábek