OFFSET
0,5
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..16383
Rémy Sigrist, Colored scatterplot of (a(n), A318703(n)) for n = 0..2^19-1 (where the hue is function of n)
MATHEMATICA
Array[Re[Total@ MapIndexed[#1*I^(First@ #2 - 1)*2^Floor[(First@ #2 - 1)/2] &, Reverse@ IntegerDigits[#, 2]]] &, 76, 0] (* Michael De Vlieger, Sep 02 2018 *)
PROG
(PARI) a(n) = my (b=Vecrev(binary(n))); real(sum(k=1, #b, b[k] * I^(k-1) * 2^floor((k-1)/2)))
CROSSREFS
KEYWORD
sign,base
AUTHOR
Rémy Sigrist, Sep 01 2018
STATUS
approved