login
A268727
One-based index of the toggled bit between n and A268717(n+1): a(n) = A070939(A003987(n,A268717(1+n))).
4
1, 2, 3, 1, 4, 1, 1, 2, 5, 1, 1, 2, 1, 2, 3, 1, 6, 1, 1, 2, 1, 2, 3, 1, 1, 2, 3, 1, 4, 1, 1, 2, 7, 1, 1, 2, 1, 2, 3, 1, 1, 2, 3, 1, 4, 1, 1, 2, 1, 2, 3, 1, 4, 1, 1, 2, 5, 1, 1, 2, 1, 2, 3, 1, 8, 1, 1, 2, 1, 2, 3, 1, 1, 2, 3, 1, 4, 1, 1, 2, 1, 2, 3, 1, 4, 1, 1, 2, 5, 1, 1, 2, 1, 2, 3, 1, 1, 2, 3, 1, 4, 1, 1, 2, 5, 1, 1, 2, 1, 2, 3, 1, 6, 1, 1, 2, 1, 2, 3, 1, 1
OFFSET
0,2
COMMENTS
A fractal sequence like A268726.
LINKS
FORMULA
a(n) = A001511(1+A006068(n)).
a(n) = A070939(A003987(n,A268717(1+n))).
a(n) = 1 + floor(log_2(n XOR A003188(1+A006068(n)))).
PROG
(Scheme) (define (A268727 n) (A070939 (A003987bi n (A268717 (+ 1 n))))) ;; A003987bi implements the bitwise-XOR, defined in A003987.
CROSSREFS
One more than A268726.
Cf. also array A268833.
Sequence in context: A039661 A293668 A214684 * A325542 A365715 A081877
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Feb 13 2016
STATUS
approved