OFFSET
0,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..8192
Kevin Ryde, Iterations of the Dragon Curve, see index TurnRight, with a(n) = TurnRight(n) - 1.
FORMULA
a(n) = A091067(n+1) - 1.
PROG
(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
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 21 2015
STATUS
approved