OFFSET
1,4
LINKS
T. D. Noe, Table of n, a(n) for n = 1..500
PROG
(Haskell)
a085238 n = e (mod x 2 + 2) x where
x = a006899 n
e b p = if p == 1 then 0 else 1 + e b (p `div` b)
-- Reinhard Zumkeller, Oct 09 2013
(PARI) do(lim)=my(v=List(vector(logint(lim\=1, 2), i, 1<<i))); for(i=0, logint(lim, 3), listput(v, 3^i)); apply(n->my(t=valuation(n, 2)); if(t, t, valuation(n, 3)), Set(v)) \\ Charles R Greathouse IV, Sep 02 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jun 22 2003
STATUS
approved