This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A228822 Largest digit of n minus the number of digits of n. 0
 -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 1, 1, 1, 1, 2, 3, 4, 5, 6, 7, 2, 2, 2, 2, 2, 3, 4, 5, 6, 7, 3, 3, 3, 3, 3, 3, 4, 5, 6, 7, 4, 4, 4, 4, 4, 4, 4, 5, 6, 7, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, -2 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,4 COMMENTS The last positive term is a(10^8-1) = a(99999999) = 1. The last nonnegative term is a(10^9-1) = a(999999999) = 0. The number of negative terms is infinite. LINKS FORMULA a(n) = A054055(n) - A055642(n). EXAMPLE ------------------------------- .   Largest   Number n    digit   of digits    a(n) ------------------------------- 9      9        1          8 10     1        2         -1 11     1        2         -1 12     2        2          0 13     3        2          1 ... CROSSREFS Cf. A054055, A055642. Sequence in context: A256289 A031076 A321999 * A255829 A277547 A190598 Adjacent sequences:  A228819 A228820 A228821 * A228823 A228824 A228825 KEYWORD sign,base,easy AUTHOR Omar E. Pol, Sep 04 2013 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.

Last modified February 22 09:43 EST 2019. Contains 320390 sequences. (Running on oeis4.)