a=2+2^2+2^3+....+2^11
2a=2^2+2^3+2^4+...+2^12
2a-a=2^2+2^3++2^4+....2^12-2+2^2+2^3+..2^11
a=2^12-2
a=2^10
A = 2+4+8+16+...+1024+2048
=> A = 2 + 22 + 23 + ... + 211
=> 2A = 22 + 23 + 24 ... + 212
=> 2A - A = 22 + 23 + 24 ... + 212 - 2 + 22 + 23 + ... + 211
=> A = 212 - 2