def compute_digits_sum(number):
digits_sum = 0
while number:
digits_sum += number % 10
number = number // 10
return digits_sum
def compute_progression_digits_sum(number):
return sum(compute_digits_sum(i) for i in range(number + 1))