proposed
approved
proposed
approved
editing
proposed
editing
approved
(PARI) a(n)=sum(k=1, n, (hammingweight(k)%2)<<(n-k)) \\ Charles R Greathouse IV, May 08 2016
(PARI) first(n)=my(v=vector(n)); v[1]=1; for(k=2, n, v[k]=2*v[k-1]+hammingweight(k)%2); concat(0, v) \\ Charles R Greathouse IV, May 08 2016
approved
editing
editing
approved
With[{tm=Nest[Flatten[#/.{0->{0, 1}, 1->{1, 0}}]&, {0}, 7]}, Table[ FromDigits[ Take[tm, n], 2], {n, 40}]] (* Harvey P. Dale, Mar 25 2015 *)
approved
editing
Jonas Wallgren (jwc(AT)ida.liu.se)
editing
approved
Terms 0 through 32 were computed by Jonas Wallgren, 33 through 3322 (highest number n for which a(n) is less than 1001 characters long) by Ariel S Koiman, May 7 2013
approved
editing