A=1+3+32+...+3100
3A=3+32+33+...+3101
=>3A+1=1+3+32+...+3100+3101=A+3101
=>3A-A=3101-1
2A=3101-1
A=(3101-1)/2
B=1+4+42+...+450
4B=4+42+...+451
4B+1=1+4+42+...+450+451=B+451
=>4B-B=451-1
3B=451-1
B=(451-1)/3
A=\(\frac{3^{101}-1}{2}\)
B=\(\frac{4^{51}-1}{3}\)