The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A175950 A175948(n)-A175949(n). 0
 0, 0, 0, -2, 0, 2, 0, -6, -2, 0, -2, 0, 4, 6, 0, -14, -6, -4, -8, 2, 0, -2, -6, -4, 2, 4, 6, 4, 12, 14, 0, -30, -14, -12, -20, -6, -12, -14, -20, 6, 6, 0, 2, 0, -4, -6, -14, -12, -2, 0, 0, 14, 8, 6, 10, 0, 10, 12, 22, 12, 28, 30, 0, -62, -30, -28, -44, -22, -36, -38, -48, -10, -18 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,4 COMMENTS A difference between two ways of encoding-decoding run lengths of 0's and 1's in the binary representation of n. LINKS MATHEMATICA takelist[l_, t_] := Module[{lent, term}, Set[lent, Length[t]]; Table[l[[t[[y]]]], {y, 1, lent}]] frombinrep[x_] := FromDigits[Flatten[Table[Table[If[OddQ[n], 1, 0], {d, 1, x[[n]]}], {n, 1, Length[x]}]], 2] binrep[x_] := repcount[IntegerDigits[x, 2]] onebinrep[x_]:=Module[{b}, b=binrep[x]; takelist[b, Range[1, Length[b], 2]]] zerobinrep[x_]:=Module[{b}, b=binrep[x]; takelist[b, Range[2, Length[b], 2]]] Table[frombinrep[Flatten[{onebinrep[n], zerobinrep[n]}]], {n, START, END}]-Table[frombinrep[Flatten[{zerobinrep[n], onebinrep[n]}]], {n, START, END}] CROSSREFS Sequence in context: A042970 A158327 A136581 * A339423 A066285 A327873 Adjacent sequences:  A175947 A175948 A175949 * A175951 A175952 A175953 KEYWORD sign,base,less AUTHOR Dylan Hamilton, Oct 28 2010 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified June 16 17:05 EDT 2021. Contains 345064 sequences. (Running on oeis4.)