OFFSET
0,1
COMMENTS
If n has k digits a(n) is a multiple of 10^k -1.
The sequence contains 10^(k) multiples of 10^k -1.
a(n)/{10^k -1} gives all natural numbers.
All terms are multiples of 9: A007953(a(n))=9*A055642(n); A010888(a(n))=9. - Reinhard Zumkeller, Sep 17 2015
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..9999
EXAMPLE
a(90) = 9009.
PROG
(Haskell)
a111708 0 = 9
a111708 n = f [] n where
f ys 0 = foldl (\v d -> 10 * v + d) 0 $ ys ++ map (9 -) ys
f ys x = f (d : ys) x' where (x', d) = divMod x 10
-- Reinhard Zumkeller, Sep 17 2015
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Aug 22 2005
EXTENSIONS
More terms from Joshua Zucker, May 08 2006
Definition cleared and offset changed by Reinhard Zumkeller, Sep 17 2015
STATUS
approved