OFFSET
1,1
COMMENTS
a(n) = n * 2^A070939(n+1) + (n+1).
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..10000
EXAMPLE
n=12: 12->'1100', 12+1->'1101', a(12)='1100''1101'='11001101'->205.
MAPLE
a:= n-> n*(2^(ilog2(n+1)+1)+1)+1:
seq(a(n), n=1..50); # Alois P. Heinz, May 20 2017
MATHEMATICA
Table[FromDigits[Join[IntegerDigits[n, 2], IntegerDigits[n+1, 2]], 2], {n, 50}] (* Harvey P. Dale, Jan 14 2013 *)
Table[n 2^IntegerLength[#, 2] + # &[n + 1], {n, 48}] (* Michael De Vlieger, May 20 2017 *)
PROG
(PARI) a(n) = fromdigits(Vec(concat(binary(n), binary(n+1))), 2); \\ Michel Marcus, May 20 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Oct 01 2003
STATUS
approved