login
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.
1
1, 0, 2, 14, 25, 56, 3, 0, 0, 36, 0, 15, 4, 0, 26, 0, 0, 57, 47, 0, 5, 16, 0, 0, 0, 0, 27, 0, 0, 0, 6, 58, 48, 17, 0, 38, 0, 0, 0, 0, 28, 0, 7, 0, 0, 0, 0, 18, 49, 0, 0, 39, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 9
OFFSET
0,3
EXAMPLE
a(3) = 14, because 1^2 + 4^2 - 14 = 3, and no number smaller than 14 has this property.
CROSSREFS
Sequence in context: A226334 A109255 A285990 * A051222 A194411 A017545
KEYWORD
base,nonn
AUTHOR
Claudio Meller, Mar 23 2010
EXTENSIONS
a(0)=1 prepended by Michel Marcus, Feb 05 2014
STATUS
approved