OFFSET
1,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
MATHEMATICA
Nest[Flatten[{#, #^2, (#(#+1))/2}]&, {0, 1, 2}, 5]//Union (* Harvey P. Dale, Aug 12 2016 *)
PROG
(Haskell)
import Data.Set (singleton, deleteFindMin, insert)
a241241 n = a241241_list !! (n-1)
a241241_list = 0 : 1 : f (singleton 2) where
f s = m : f (insert (a000290 m) $ insert (a000217 m) s')
where (m, s') = deleteFindMin s
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 17 2014
EXTENSIONS
Initial 0 and 1 prepended by Jon Perry, Apr 17 2014
STATUS
approved