OFFSET
0,3
COMMENTS
A180199(n) = a(a(n));
LINKS
FORMULA
a(0) = 0, a(1) = 1, for n > 0 a(2*n) = 2*a(n) + [n even], a(2*n + 1) = 2*a(n) + [n odd]. - Yosu Yurramendi, May 23 2020
PROG
(R)
#
maxn <- 63 # by choice
a <- 1
for(n in 1:maxn){
a[2*n ] <- 2*a[n] + (n%%2 == 0)
a[2*n+1] <- 2*a[n] + (n%%2 != 0)}
a <- c(0, a)
# Yosu Yurramendi, May 23 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 15 2010
STATUS
approved