For each integer n>1, let G(n) be the number of solutions to the equation cosx=cos(nx) on the interval [0,2π]. What is ∑n=22007G(n)?
4028049
4029051
4030053
4031055
4032057