Consider

a3-b3=(a-b)(a2+ab+b2) (1)

where

a and b are any integer numbers.

If b=a-1, then we have the following formula

a3-(a-1)3=3a(a-1)+1 (1.1)

Examples,

(123-113)=3x12x11+1 =397

543-533==3x54x53+1=8587

993-983=3x99x98+1=29107

1013-1003=3x101x100+1=30301

If b=a-k, where k=0, 1, 2, 3, ..., 9. We have the general formula is the following

a3-(a-k)3=kx3xax(a-k)+k3 (1.2)

Here if k=2, we have

a3-(a-2)3=2x3ax(a-2)+23 (1.3)

If k=3 then we have

a3-(a-3)3=3x3ax(a-3)+33 (1.4)

Example,

993-953=4x3x99x95+43=112924