login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A265330
Zero-based row index to A265345; 2-adic valuation of bijective base-3 reversal of n: a(n) = A007814(A263273(n)).
4
0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 3
OFFSET
1,4
LINKS
FORMULA
a(n) = A007814(A263273(n)).
a(2n+1) = 0, a(2n) = 1 + a(A265352(n)).
EXAMPLE
For n = 32, in base-3 "1012" [= A007089(32)], when we reverse it, we get "2101" [= A007089(64)], and 2-adic valuation of 64 [= "1000000" = A007088(64)] is 6, thus a(32) = 6.
PROG
(Scheme, two variants)
(definec (A265330 n) (if (odd? n) 0 (+ 1 (A265330 (A265352 (/ n 2))))))
(define (A265330 n) (A007814 (A263273 n)))
CROSSREFS
One less than A265331.
Cf. A265910 (corresponding other index).
Cf. also A265336, A265337, A265340.
Differs from A007814 for the first time at n=32, where a(32) = 6, while A007814(32) = 5.
Sequence in context: A254990 A191255 A007814 * A272216 A349906 A320439
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Dec 18 2015
STATUS
approved