OFFSET
0,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = 8 * A007088(n).
MAPLE
f:= proc(n) local L; L:= convert(n, base, 2); add(8*L[i]*10^(i-1), i=1..nops(L)) end proc:
seq(f(n), n=0..100); # Robert Israel, Jul 28 2014
MATHEMATICA
Table[8 FromDigits[IntegerDigits[n, 2]], {n, 0, 39}] (* Alonso del Arte, Jan 10 2012 *)
PROG
(Haskell)
a204095 n = a204095_list !! n
a204095_list = map (* 8) a007088_list
(PARI) a(n)=8*subst(Pol(binary(n)), x, 10);
for(n=0, 20, print1(a(n), ", ")) \\ Felix Fröhlich, Jul 26 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jan 10 2012
EXTENSIONS
Definition corrected by M. F. Hasler, Feb 08 2020
STATUS
approved