OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
124 is a term as the geometric mean of digits is (1*2*4) = 8 = 2^3.
PROG
(Haskell)
a061426 n = a061426_list !! (n-1)
a061426_list = g [1] where
g ds = if product ds == 2 ^ length ds
then foldr (\d v -> 10 * v + d) 0 ds : g (s ds) else g (s ds)
s [] = [1]; s (8:ds) = 1 : s ds; s (d:ds) = 2*d : ds
-- Reinhard Zumkeller, Jan 13 2014
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, May 03 2001
EXTENSIONS
More terms from Erich Friedman, May 08 2001
STATUS
approved