login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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