add inversion of a number