recursion and digits