OFFSET
1,2
MATHEMATICA
Module[{l, r, d, ldump, larger, rdump}, l = {}; r = {}; Table[d = IntegerDigits[x, 2]; l = Flatten[{l, d}]; r = Flatten[{d, r}]; If[x > 1, ldump = l; rdump = r; While[First[ldump] == First[rdump], ldump = Rest[ldump]; rdump = Rest[rdump]]; If[First[ldump] == 1, larger = ldump, larger = rdump]; FromDigits[Pick[larger, OddQ[ldump + rdump]], 2], 0], {x, 1, DESIRED_NUMBER_OF_TERMS}]]
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Dylan Hamilton, Oct 14 2010
STATUS
approved