login
A292262
Number of trailing 2-digits in ternary representation of A245612(n).
6
0, 1, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 1, 0, 1, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 1, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1
OFFSET
0,7
LINKS
FORMULA
a(n) = A007949(1+A245612(n)).
a(n) = A007814(1+A291763(n)).
a(0) = 0, a(1) = 1, after which a(2n) = 1 + A292261(n/2), a(2n+1) = 0.
PROG
(Scheme)
(define (A292262 n) (A007949 (+ 1 (A245612 n))))
(define (A292262 n) (A007814 (+ 1 (A291763 n))))
(define (A292262 n) (cond ((<= n 1) n) ((odd? n) 0) (else (+ 1 (A292261 (/ n 2))))))
CROSSREFS
Cf. A007814, A007949, A245612, A291763, A292261 (even bisection subtracted by one).
Cf. also A292242, A292252.
Sequence in context: A355741 A355744 A179010 * A160804 A085854 A216188
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Sep 12 2017
STATUS
approved