OFFSET
1,2
COMMENTS
LINKS
Antti Karttunen and Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
PROG
(Scheme, with Antti Karttunen's IntSeq-library)
(definec (A227413 n) (cond ((< n 2) n) ((even? n) (A000040 (A227413 (/ n 2)))) (else (A002808 (A227413 (/ (- n 1) 2))))))
(Haskell)
import Data.List (transpose)
a227413 n = a227413_list !! (n-1)
a227413_list = 1 : concat (transpose [map a000040 a227413_list,
map a002808 a227413_list])
-- Reinhard Zumkeller, Jan 29 2014
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, Jul 10 2013
STATUS
approved