OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
PROG
(Haskell)
import Data.Set (singleton, deleteFindMin, insert)
a009299 n = a009299_list !! (n-1)
a009299_list = f [2] (singleton 2) where
f xs s = m : f xs' (foldl (flip insert) s' (map ((+ 2) . (* m)) xs'))
where xs' = m : xs
(m, s') = deleteFindMin s
-- Reinhard Zumkeller, Aug 15 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved