Ta có B = 12 + 22 + 32 + ... + 982
= 1.1 + 2.2 + 3.3 + ... + 98.98
= 1.(2 - 1) + 2.(3 - 1) + 3.(4 - 1) + ... + 98.(99 - 1)
= 1.2 + 2.3 + 3.4 + ... + 98.99 - (1 + 2 + 3 + ... + 98)
= 1.2 + 2.3 + 3.4 + ... + 98.99 - 98.(98 + 1) : 2
= 1.2 + 2.3 + 3.4 + ... + 98.99 - 4851
Khi đó B - A = (1.2 + 2.3 + 3.4 + ... + 98.99 - 4851) - 1.2 + 2.3 + 3.4 + ... + 98.99
= 1.2 + 2.3 + 3.4 + ... + 98.99 - 4851 - 1.2 + 2.3 + 3.4 + ... + 98.99
= -4851
Vậy B - A = - 4851