OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
PROG
(Haskell)
import Data.Set (singleton, deleteFindMin, insert)
a108779 n = a108779_list !! (n-1)
a108779_list = f $ singleton (1, 0, 0) where
f s = y : f (insert (10 * y, i + 1, j) $ insert (11 * y, i, j + 1) s')
where ((y, i, j), s') = deleteFindMin s
-- Reinhard Zumkeller, May 15 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Douglas Winston (douglas.winston(AT)srupc.com), Jun 26 2005
STATUS
approved