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 A118429 #13 Nov 26 2019 04:36:19 %S A118429 1,2,4,7,1,12,4,21,10,1,37,22,5,65,47,15,1,114,98,38,6,200,199,91,21, %T A118429 1,351,396,210,60,7,616,777,468,158,28,1,1081,1508,1014,396,89,8,1897, %U A118429 2900,2151,952,255,36,1,3329,5534,4487,2212,687,126,9,5842,10492,9229 %N A118429 Triangle read by rows: T(n,k) is the number of binary sequences of length n containing k subsequences 010 (n,k >= 0). %C A118429 Row n has ceiling(n/2) terms (n >= 1). %C A118429 Sum of entries in row n is 2^n (A000079). %C A118429 T(n,0) = A005251(n+3), T(n,1) = A118430(n). %C A118429 Sum_{k=0..n-1} k*T(n,k) = (n-2)*2^(n-3) (A001787). %H A118429 Alois P. Heinz, <a href="/A118429/b118429.txt">Rows n = 0..199, flattened</a> %F A118429 G.f.: G(t,z) = (1+(1-t)z^2)/(1 - 2z + (1-t)z^2 - (1-t)z^3). %F A118429 Recurrence relation: T(n,k) = 2T(n-1,k) - T(n-2,k) + T(n-3,k) + T(n-2,k-1) - T(n-3,k-1) for n >= 3. %e A118429 T(6,2) = 5 because we have 010010, 010100, 010101, 001010 and 101010. %e A118429 Triangle starts: %e A118429 1; %e A118429 2; %e A118429 4; %e A118429 7, 1; %e A118429 12, 4; %e A118429 21, 10, 1; %e A118429 37, 22, 5; %p A118429 G:=(1+(1-t)*z^2)/(1-2*z+(1-t)*z^2-(1-t)*z^3): Gser:=simplify(series(G,z=0,18)): P[0]:=1: for n from 1 to 16 do P[n]:=sort(coeff(Gser,z^n)) od: 1; for n from 1 to 16 do seq(coeff(P[n],t,j),j=0..ceil(n/2)-1) od; # yields sequence in triangular form %t A118429 nn=15;Map[Select[#,#>0&]&,CoefficientList[Series[1/(1-2z-(u-1)z^3/(1-(u-1)z^2)),{z,0,nn}],{z,u}]]//Grid (* _Geoffrey Critzer_, Dec 03 2013 *) %Y A118429 Cf. A000079, A005251, A001787, A118430. %K A118429 nonn,tabf %O A118429 0,2 %A A118429 _Emeric Deutsch_, Apr 27 2006