A(2)=3*2+12
A(4)=3*4+12
...
A(2^n)=3*2^n+12
所以Gn =3*[2+4+...+2^n]+12*n
=3*[2^(n+1)-2]/(2-1)+12n
=6(2^n+2n-1)