A = 1002 - 992 + 982 - 972 + . . . + 22 - 12
= (100 - 99)(100 + 99) + (98 - 97)(98 + 97) + . . . (2 - 1)(2 + 1)
= 199 + 195 + . . . + 3
= 5050
B = 3(22 + 1)(24 + 1) . . . (264 + 1) + 1
= (22 - 1)(22 + 1)(24 + 1)(28 + 1)(216 + 1)(232 + 1)(264 + 1)(264 + 1) + 1
= (24 - 1)(24 + 1)(28 + 1)(216 + 1)(232 + 1)(264 + 1) + 1
= (28 - 1)(28 + 1)(216 + 1)(232 + 1)(264 + 1) + 1
= (216 - 1)(216 + 1)(232 + 1)(264 + 1) + 1
= (232 - 1)(232 + 1)(264 + 1) + 1
= (264 - 1)(264 + 1) + 1
= 2128 - 1 + 1
= 2128