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”).

A255068
a(n) is the largest k such that A255070(k) = n.
9
2, 5, 6, 10, 11, 13, 14, 18, 21, 22, 23, 26, 27, 29, 30, 34, 37, 38, 42, 43, 45, 46, 47, 50, 53, 54, 55, 58, 59, 61, 62, 66, 69, 70, 74, 75, 77, 78, 82, 85, 86, 87, 90, 91, 93, 94, 95, 98, 101, 102, 106, 107, 109, 110, 111, 114, 117, 118, 119, 122, 123, 125, 126, 130, 133, 134, 138, 139, 141, 142, 146, 149, 150
OFFSET
0,1
LINKS
Kevin Ryde, Iterations of the Dragon Curve, see index TurnRight, with a(n) = TurnRight(n) - 1.
FORMULA
a(n) = A091067(n+1) - 1.
PROG
(Scheme) (define (A255068 n) (- (A091067 (+ n 1)) 1))
(PARI) a(n) = my(t=1); n=2*n+2; forstep(i=logint(n, 2), 0, -1, if(bittest(n, i)==t, n++; t=!t)); n-1; \\ Kevin Ryde, Mar 21 2021
CROSSREFS
First differences are A106836 (from its second term onward).
Sequence A341522 sorted into ascending order.
Sequence in context: A004202 A013647 A377167 * A183987 A187840 A187904
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 21 2015
STATUS
approved