OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000 (first 1000 terms from Reinhard Zumkeller)
MATHEMATICA
f[l_] := Block[{k = l}, Select[ Union[ Flatten[ AppendTo[k, Table[ k[[i]]*k[[j]] + 1, {i, 1, Length[k]}, {j, 1, i}]]]], # < 1000 &]]; NestList[f, {2}, 7][[ -1]] (* Robert G. Wilson v, May 23 2004 *)
PROG
(Haskell)
import Data.Set (singleton, deleteFindMin, insert)
a009293 n = a009293_list !! (n-1)
a009293_list = f [2] (singleton 2) where
f xs s = m : f xs' (foldl (flip insert) s' (map ((+ 1) . (* m)) xs'))
where xs' = m : xs
(m, s') = deleteFindMin s
-- Reinhard Zumkeller, Aug 15 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved