login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A161561 The smallest number larger than n with digital sum equal to n. 0
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 29, 39, 49, 59, 69, 79, 89, 99, 199, 299, 399, 499, 599, 699, 799, 899, 999, 1999, 2999, 3999, 4999, 5999, 6999, 7999, 8999, 9999, 19999, 29999, 39999, 49999, 59999, 69999, 79999, 89999, 99999, 199999, 299999, 399999 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

FORMULA

a(n) = min{k>n: A007953(k) = n}.

EXAMPLE

a(4)=13 because the sums of digits of the candidates 5 to 12 are all different from n=4,

and 13 is the first candidate with sum 1+3 = n = 4.

CROSSREFS

Cf. A161551, A075360, A054750.

Sequence in context: A008716 A011531 A070839 * A007959 A102492 A169905

Adjacent sequences:  A161558 A161559 A161560 * A161562 A161563 A161564

KEYWORD

base,easy,nonn

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), Jun 13 2009

EXTENSIONS

More precise definition from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 30 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 01:35 EST 2012. Contains 205567 sequences.