OFFSET
1,2
COMMENTS
Suggested by a comment of Charles R Greathouse IV in A220264.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
PROG
(Haskell)
import Data.Set (deleteFindMin, empty, fromList, union)
import qualified Data.Set as Set (null)
a220423 n = a220423_list !! (n-1)
a220423_list = f (splitAt 1 a002110_list) empty where
f (us'@(u:_), vs'@(v:vs)) s
| Set.null s || m > u
= f (v:us', vs) (s `union` (fromList $ map (* u) us'))
| otherwise = m : f (us', vs') s'
where (m, s') = deleteFindMin s
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 14 2012
STATUS
approved