OFFSET
0,9
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..65537
Clark Kimberling, Fractal sequences
FORMULA
For even n, a(n) = A025480(n/2), for odd n, a(n) = a((n-1)/2). - Antti Karttunen, Apr 18 2022
a(2n+1) = a(4n+3) = a(n).
a(2n) = a(4n+1) = a(4n+2) = A025480(n/2).
a(4n) = a(8n+1) = a(8n+2) = n.
a(n) = A110963(1+n) - 1.
PROG
(PARI)
A025480(n) = (n>>valuation(n*2+2, 2));
(PARI) a(n) = n++; n>>=valuation(n, 2); n>>valuation(2*n+2, 2); \\ Ruud H.G. van Tol, Jun 23 2024
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Alexandre Wajnberg, Sep 26 2005
EXTENSIONS
Entry edited and more terms added by Antti Karttunen, Apr 18 2022
STATUS
approved