OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..8192
FORMULA
a(1) = 1, for n>1: a(n) = a(A253889(n)) + [n is of the form 3n or 3n+1, i.e., in A032766] (Here [ ] is Iverson bracket).
a(1) = 0, thereafter, if n = 3k+2, then a(n) = a((n+1)/3), otherwise a(n) = 1 + a(A253889(n)).
Other identities:
a(A007051(n)) = 1 for all n >= 0. [And no 1's in any other positions.]
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 23 2015
STATUS
approved