OFFSET
1,1
COMMENTS
3^(n-1) < a(n) < 3^n. - Reinhard Zumkeller, Nov 19 2013
PROG
(Haskell)
-- import Data.List (delete)
a109682 n = a109682_list !! (n-1)
a109682_list = compl a109681_list [0..] where
compl us'@(u:us) vs'@(v:vs)
| u == v = compl us vs
| u > 3 * v = v : compl us (delete u vs)
| otherwise = compl us (delete u vs')
-- Reinhard Zumkeller, Nov 19 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Philippe Deléham, Aug 08 2005
STATUS
approved