OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
. n | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
. A062234 | 1 1 3 3 9 9 15 15 17 27 25 33 39 39 41
. --------+-----+-----+-----+-------+----+----+----+----+-------+----+-
. A258383 | 2 | 2 | 2 | 2 | 1 | 1 | 1 | 1 | 2 | 1 |
. A258432 | 1 | 3 | 5 | 7 | 9 | 10 | 11 | 12 | 13 | 15 |
. run # | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
PROG
(Haskell)
import Data.List (groupBy); import Data.Function (on))
a258432 n = a258432_list !! (n-1)
a258432_list = map (snd . head) $
groupBy ((==) `on` fst) $ zip a062234_list [1..]
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 31 2015
STATUS
approved