%I #29 Nov 19 2017 19:04:12
%S 1,1,1,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,
%T 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,
%U 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
%N a(1) = 1; for n > 1, a(n) = 1*0^{A000120(n-1) - 1}.
%C Also the characteristic function of A094373.
%C Essentially the same as A036987 and A209229, except for the indexing.
%C Also the second row of square array A255740.
%C The definition related to binary weight (A000120) arises from the general formula of the square array A255740.
%C Partial sums give A070941, the second row of the square array A255741.
%C After the initial 1,1,1, we see runs of 2^m-1 0's (m=1,2,3,...) followed by a single 1. - _N. J. A. Sloane_, Mar 16 2017
%H Antti Karttunen, <a href="/A255738/b255738.txt">Table of n, a(n) for n = 1..65537</a>
%H A. J. Macfarlane, <a href="http://www.damtp.cam.ac.uk/user/ajm/Papers2016/GFsForCAsOfEvenRuleNo.ps">Generating functions for integer sequences defined by the evolution of cellular automata with even rule numbers</a>, 2016. See Eq. (72).
%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>
%o (PARI) a(n) = if (n==1, 1, 0^(hammingweight(n-1)-1));
%Y Cf. A000007, A000120, A011782, A036987, A040000, A070941, A094373, A151787, A145682, A209229, A255740, A255741.
%K nonn,less
%O 1
%A _Michel Marcus_ and _Omar E. Pol_, Mar 16 2015