login
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.
2
1, 35, 0, 13, 24, 55, 0, 12, 0, 10, 23, 0, 44, 54, 22, 33, 20, 0, 43, 32, 0, 30, 42, 52, 40, 50, 0, 109, 0, 0, 0, 0, 0, 0, 0, 0, 119, 0, 0, 0, 0, 0, 0, 108, 0, 0, 0, 0, 139, 0, 0, 149, 118, 0, 0, 0, 0, 107, 0, 128, 0, 0, 0, 0, 138, 0, 117, 148, 158, 106, 0, 0, 0, 127, 0, 0, 0, 0, 116, 105
OFFSET
0,2
EXAMPLE
a(1) = 35 because 35 - (3^2 + 5^2) = 1, and no number smaller than 35 has this property.
CROSSREFS
Sequence in context: A365894 A291452 A343981 * A104785 A225313 A028847
KEYWORD
base,nonn
AUTHOR
Claudio Meller, Mar 23 2010
STATUS
approved