Problem

Source: 2020 MEMO I-2

Tags: number theory, memo, MEMO 2020



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