a(n) is the smallest number that is larger by n than the sum of the square of its digits, or 0 if no such number exists.

A174593

a(n) is the smallest number that is larger by n than the sum of the square of its digits, or 0 if no such number exists.

Terms

    a(0) =1a(1) =35a(2) =0a(3) =13a(4) =24a(5) =55a(6) =0a(7) =12a(8) =0a(9) =10a(10) =23a(11) =0a(12) =44a(13) =54a(14) =22a(15) =33a(16) =20a(17) =0a(18) =43a(19) =32a(20) =0a(21) =30a(22) =42a(23) =52a(24) =40a(25) =50a(26) =0a(27) =109a(28) =0a(29) =0

External references