The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A089186 Decreases from 9 * 10^k down to 1, restarting at 9 * 10^(k+1). 6
9, 8, 7, 6, 5, 4, 3, 2, 1, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Points of local maxima: 9 * 10^k.
LINKS
FORMULA
a(n) = 10^{floor(log_10(n)) + 1} - n.
MATHEMATICA
Join[Range[9, 1, -1], Range[90, 1, -1]] (* Harvey P. Dale, Jun 06 2013 *)
PROG
(Magma) [10^#Intseq(n)-n : n in [1..68]] // Arkadiusz Wesolowski, Nov 09 2013
(PARI) a(n) = 10^(1+logint(n, 10)) - n \\ Ruud H.G. van Tol, Jan 16 2023
CROSSREFS
Sequence in context: A104348 A251984 A298372 * A055120 A342115 A090671
KEYWORD
base,easy,nonn
AUTHOR
Artemario Tadeu Medeiros da Silva (artemario(AT)uol.com.br), Dec 07 2003
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 June 11 08:13 EDT 2024. Contains 373292 sequences. (Running on oeis4.)