Recursive 'num_to_list' and 'list_to_num'