%I #13 May 03 2020 09:14:31
%S 2,5,7,11,11,17,17,23,19,29,27,37,29,39,37,47,35,53,47,65,47,65,59,77,
%T 53,71,65,83,65,83,77,95,67,101,87,121,83,117,103,137,87,121,107,141,
%U 103,137,123,157,101,135,121,155,117,151,137,171,121,155,141,175,137
%N a(n) = 2n + "reverse of n-written-in-binary" + 2.
%e a(0) = 0 + 0 + 2.
%e a(1) = 2 + 1 + 2.
%e a(2) = 4 + 1 + 2.
%e a(3) = 6 + 3 + 2.
%e a(4) = 8 + 1 + 2.
%o (Ruby) a=[]; 200.times{|i| a << i*2 + (i*2).to_s(2).reverse.to_i(2) + 2 }; p a
%o (PARI) a(n) = {my(b = binary(n)); my(lb = #b); 2*n + 2 + sum(i=1, lb, b[i]*(2^(i-1)));} \\ _Michel Marcus_, Jan 15 2014
%Y Cf. A030101.
%K nonn,base
%O 0,1
%A _Simon Strandgaard_, Dec 07 2006