令x=1
a+b+c+d+e+f+g=(2*1-1)^6=1
令x=-1
a-b+c-d+e-f+g=[2*(-1)-1]^6=3^6
所以a+c+e+g=[(a+b+c+d+e+f+g)+(a-b+c-d+e-f+g)]/2
=(3^6+1)/2
=365
令x=1
a+b+c+d+e+f+g=(2*1-1)^6=1
令x=-1
a-b+c-d+e-f+g=[2*(-1)-1]^6=3^6
所以a+c+e+g=[(a+b+c+d+e+f+g)+(a-b+c-d+e-f+g)]/2
=(3^6+1)/2
=365