B = 5 + 52 + 53 + .......... + 5100
=> 5B = 52 + 53 + 54 + ......... + 5101
=> 5B - B = (52 + 53 + 54 + ........... + 5101) - (5 + 52 + 53 + ............. + 5100)
=> 4B = 5101 - 5
=> B = \(\frac{5^{101}-5}{4}\)
A = 2 + 22 + 23 + .......... + 2100
=> 2A = 22 + 23 + 24 + ......... + 2101
=> 2A - A = (22 + 23 + 24 + ........... + 2101) - (2 + 22 + 23 + ............. + 2100)
=> A = 2101 - 2