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

A174594

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

Terms

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

External references