login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A251984 Smallest number such that a carry occurs when adding it to n in decimal representation. 3
9, 8, 7, 6, 5, 4, 3, 2, 1, 90, 9, 8, 7, 6, 5, 4, 3, 2, 1, 80, 9, 8, 7, 6, 5, 4, 3, 2, 1, 70, 9, 8, 7, 6, 5, 4, 3, 2, 1, 60, 9, 8, 7, 6, 5, 4, 3, 2, 1, 50, 9, 8, 7, 6, 5, 4, 3, 2, 1, 40, 9, 8, 7, 6, 5, 4, 3, 2, 1, 30, 9, 8, 7, 6, 5, 4, 3, 2, 1, 20, 9, 8, 7, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..9999

Eric Weisstein's World of Mathematics, Carry

Wikipedia, Carry (arithmetic)

FORMULA

a(n) = (10 - A004151(n) mod 10) * 10^A122840(n).

PROG

(Haskell)

a251984 n = if d > 0 then 10 - d else 10 * a251984 n'

            where (n', d) = divMod n 10

CROSSREFS

Cf. A004151, A122840, A031298, A167832.

Sequence in context: A083824 A087029 A104348 * A298372 A089186 A055120

Adjacent sequences:  A251981 A251982 A251983 * A251985 A251986 A251987

KEYWORD

nonn,base,look

AUTHOR

Reinhard Zumkeller, Dec 12 2014

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 24 01:05 EST 2020. Contains 331178 sequences. (Running on oeis4.)