A=2^100-2^99-....-2^2-2-1
=>2A=2^101-2^100-....-2^3-2^2-2
=>2A-A=2^101-2^100-...-2^3-2^2-2-2^100+2^99+...+2^2+2+1
=>2A-A=2^101-2^101+1=1
vậy A=1
=> A=2100- (299+298+........+22+2+1) (3)
B
Ta có: B=299+298+..........+22+2+1 (1)
=> 2B=2100+299+..........+23+22+2 (2)
Lấy (2) - (1) ta có: 2B-B=(2100+299+...........+23+22+2)-(299+298+.............+22+2+1)
=> B= 2100-1
Thay vào (3) ta có: A=2100- (2100-1)
=> A=2100-2100+1
=> A=1