A = 1+2+22+...+210
=> 2A = 2+22+23+...+211
=> 2A - A = (2+22+23+...+211) - (1+2+22+...+210)
=> A = 211 - 1
B = 1+3+32+...+310
=> 3B = 3+32+33+...+311
=> 3B - B = (3+32+33+...+311) - (1+3+32+...+310)
=> 2B = 311 - 1
=> B = \(\frac{3^{11}-1}{2}\)
A = 1 + 2 1 + 2 2 + 2 3 + ... + 2 9 + 2 10
2A = 2 + 2 2 + 2 3 + 2 4 + ... + 2 10 + 2 11
2A - A = ( 2 + 2 2 + 2 3 + 2 4 + ... + 2 10 + 2 11 )
- ( 1 + 2 1 + 2 2 + 2 3 + ... + 2 9 + 2 10 )
A = 2 11 - 1
A = 2047
B = 1 + 3 1 + 3 2 + 3 3 + ... + 3 9 + 3 10
3B = 3 1 + 3 2 + 3 3 + 3 4 + ... + 3 10 + 3 11
3B - B= ( 3 1 + 3 2 + 3 3 + 3 4 + ... + 3 10 + 3 11 )
- ( 1 + 3 1 + 3 2 + 3 3 + ... + 3 9 + 3 10 )
2B = 3 11 - 1
B = \(\frac{3^{11}-1}{2}\)
B = 88573