a(n) = smallest integer m>=0 such that sum of digits of n and m is >=10.

A175674

a(n) = smallest integer m>=0 such that sum of digits of n and m is >=10.

Terms

    a(0) =19a(1) =9a(2) =8a(3) =7a(4) =6a(5) =5a(6) =4a(7) =3a(8) =2a(9) =1a(10) =9a(11) =8a(12) =7a(13) =6a(14) =5a(15) =4a(16) =3a(17) =2a(18) =1a(19) =0a(20) =8a(21) =7a(22) =6a(23) =5a(24) =4a(25) =3a(26) =2a(27) =1a(28) =0a(29) =0

External references