1,4

Table of n, a(n) for n=1..78.

a(n) = (n+1+(2/3)*(4^e_4-1)+(-1)^e_2*(n-1-2*(4^e_4-1)))/2 where e_4=floor(log[4](n)) and e_2=floor(log[2](n))=floor(log[4](n^2)) - Antonio G. Astudillo (afg_astudillo(AT)hotmail.com), Feb 22 2003

Sequence in context: A168092 A210032 A093392 * A094699 A194259 A246264

Adjacent sequences: A079944 A079945 A079946 * A079948 A079949 A079950

nonn

N. J. A. Sloane, Feb 22 2003

approved