x raise to power n - y raise to power n [xn-yn]
=(x-y) (x raise to power n-1 + x raise to power n-2 . y +...............+ y raise to power n-1)
x10-1 = (x-1) ( x9 + x8+................+1)
now (x-1) will be cancelled from (x-1)
and the answer will be the remaining part