OFFSET
0,2
COMMENTS
All terms in this sequence are even, because every even number produces an even binary number (ends with 0) and every odd number produces an odd binary number (ends with 1).
LINKS
Isaac S. Friedman, Table of n, a(n) for n = 0..999
FORMULA
a(n) = A007088(n) + n.
EXAMPLE
a(4) = convert_to_binary(4) + 4 = 100 + 4 = 104.
MATHEMATICA
Table[n+FromDigits[IntegerDigits[n, 2]], {n, 0, 40}] (* Harvey P. Dale, Jul 08 2019 *)
PROG
(PARI) a(n)=fromdigits(binary(n))+n \\ Charles R Greathouse IV, Feb 19 2016
(PARI) a(n) = subst(Pol(binary(n)), x, 10) + n \\ Michel Marcus, Feb 20 2016
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Isaac S. Friedman, Feb 19 2016
STATUS
approved