OFFSET
1,3
COMMENTS
LINKS
R. Zumkeller, Table of n, a(n) for n = 1..8191
FORMULA
a(n) = if even n then a(n/2) else A008578((n+1)/2).
EXAMPLE
Initial values, seen as a binary tree:
................................. 1
................ 1 _______________________________ 2
........ 1 _____________ 3 .............. 2 ______________ 5
... 1 _____ 7 ..... 3 ______ 11 .... 2 ______ 13 .... 5 ______ 17
.. 1__19...7__23...3__29...11__31...2__37...13__41...5__43...17__47
PROG
(Haskell)
import Data.List (transpose)
a181363 n = a181363_list !! (n-1)
a181363_list = concat $ transpose [a008578_list, a181363_list]
-- Reinhard Zumkeller, Mar 22 2014, Oct 20 2011, Oct 16 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 16 2010
STATUS
approved