MathDB
sum of digits of consecutive numbers

Source: 2020 MEMO I-2

August 30, 2020
number theorymemoMEMO 2020

Problem Statement

We call a positive integer NN contagious if there are 10001000 consecutive non-negative integers such that the sum of all their digits is NN. Find all contagious positive integers.