This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A318439 #13 Nov 30 2020 22:37:57 %S A318439 0,0,1,1,-2,-2,-1,-1,2,2,3,3,0,0,1,1,0,0,1,1,-2,-2,-1,-1,2,2,3,3,0,0, %T A318439 1,1,-4,-4,-3,-3,-6,-6,-5,-5,-2,-2,-1,-1,-4,-4,-3,-3,-4,-4,-3,-3,-6, %U A318439 -6,-5,-5,-2,-2,-1,-1,-4,-4,-3,-3,8,8,9,9,6,6,7,7,10 %N A318439 For any n >= 0 with binary expansion Sum_{k=0..w} b_k * 2^k, let h(n) = Sum_{k=0..w} b_k * (i-1)^k (where i denotes the imaginary unit); a(n) is the imaginary part of h(n). %C A318439 See A318438 for the real part of h and additional comments. %H A318439 Rémy Sigrist, <a href="/A318439/b318439.txt">Table of n, a(n) for n = 0..10000</a> %H A318439 <a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a> %F A318439 a(2^k) = A108520(k-1) for any k > 0. %o A318439 (PARI) a(n) = my (d=Vecrev(digits(n,2))); imag(sum(i=1, #d, d[i]*(I-1)^(i-1))) %Y A318439 Cf. A108520, A318438. %K A318439 sign,look,base %O A318439 0,5 %A A318439 _Rémy Sigrist_, Aug 26 2018