to add digits of a number