Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)

Revision History for A161561

(Underlined text is an addition; strikethrough text is a deletion.)

Showing all changes.
A161561 The smallest number larger than n with digital sum equal to n.
(history; published version)
#9 by Harvey P. Dale at Sat Oct 24 12:21:46 EDT 2020
STATUS

editing

approved

#8 by Harvey P. Dale at Sat Oct 24 12:21:43 EDT 2020
MATHEMATICA

dsn[n_]:=Module[{k=n+1}, While[Total[IntegerDigits[k]]!=n, k++]; k]; Array[ dsn, 50] (* Harvey P. Dale, Oct 24 2020 *)

STATUS

approved

editing

#7 by Joerg Arndt at Sun Jun 08 10:02:46 EDT 2014
STATUS

proposed

approved

#6 by Michel Marcus at Sun Jun 08 09:21:56 EDT 2014
STATUS

editing

proposed

#5 by Michel Marcus at Sun Jun 08 09:21:51 EDT 2014
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,.

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

PROG

(PARI) a(n) = my(m = n+1); while(sumdigits(m) != n, m++); m; \\ Michel Marcus, Jun 08 2014

STATUS

approved

editing

#4 by Russ Cox at Sat Mar 31 10:32:42 EDT 2012
AUTHOR

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

Discussion
Sat Mar 31 10:32
OEIS Server: https://oeis.org/edit/global/789
#3 by Russ Cox at Fri Mar 30 17:40:00 EDT 2012
EXTENSIONS

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

Discussion
Fri Mar 30 17:40
OEIS Server: https://oeis.org/edit/global/190
#2 by N. J. A. Sloane at Sun Sep 12 03:00:00 EDT 2010
NAME

NextThe smallest number highestlarger sumthan ofn thewith digitsdigital ofsum theequal naturalto numbersn.

COMMENTS

If you add the digits of these terms you will have the sequence of the

natural numbers. For example, the sum of digits of 4 is 4, but the next

highest is 13, 1+3=4.

FORMULA

a(4)=13 because 1+3=4. By "next highest" is meant the next term greater than

the number itself, 4 in this case.

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

EXAMPLE

For a(1) through a(5), 10, 11, 12, 13, 14 translate to 1 2 3 4 5 (1+4=5)

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.

KEYWORD

base,easy,nonn,uned,new

EXTENSIONS

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

#1 by N. J. A. Sloane at Tue Jun 01 03:00:00 EDT 2010
NAME

Next highest sum of the digits of the natural numbers

DATA

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

OFFSET

1,1

COMMENTS

If you add the digits of these terms you will have the sequence of the

natural numbers. For example, the sum of digits of 4 is 4, but the next

highest is 13, 1+3=4.

FORMULA

a(4)=13 because 1+3=4. By "next highest" is meant the next term greater than

the number itself, 4 in this case.

EXAMPLE

For a(1) through a(5), 10, 11, 12, 13, 14 translate to 1 2 3 4 5 (1+4=5)

CROSSREFS

A161551 A075360 A054750

KEYWORD

base,easy,nonn,uned

AUTHOR

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

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 11 08:23 EDT 2024. Contains 375814 sequences. (Running on oeis4.)