#PHP, 73+1 bytes
PHP, 73+1 bytes
while(array_sum(str_split($i+=$n=$argn))-$n|$i%10**strlen($n)-$n);echo$i;
Run as pipe with -R
.
loops $i
through multiples of <input>
until sum_of_digits-<input>
and tail_of_i-$n
are falsy;
then prints i
.