OFFSET
0,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
FORMULA
MATHEMATICA
Join[{0}, Table[Table[n, IntegerLength[n, 2]], {n, 30}]]//Flatten (* Harvey P. Dale, Oct 20 2016 *)
PROG
(Haskell)
import Data.List (unfoldr)
a030530 n = a030530_list !! (n-1)
a030530_list = 0 : concatMap (\n -> unfoldr
(\x -> if x == 0 then Nothing else Just (n, div x 2)) n) [1..]
-- Reinhard Zumkeller, Dec 05 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
STATUS
approved