%N Toothpick sequence starting at the vertex of an infinite 90-degree wedge.
%C Consider the wedge of the plane defined by points (x,y) with y >= |x|, with the initial toothpick extending from (0,0) to (0,2); then extend by the same rule as for A139250, always staying inside the wedge.
%C Number of toothpick in the structure after n rounds.
%C The toothpick sequence A139250 is the main entry for this sequence. See also A153000. First differences: A160407.
%H David Applegate, Omar E. Pol and N. J. A. Sloane, <a href="http://neilsloane.com/doc/tooth.pdf">The Toothpick Sequence and Other Sequences from Cellular Automata</a>
%H N. J. A. Sloane, <a href="http://neilsloane.com/doc/toothlist.html">Catalog of Toothpick and Cellular Automata Sequences in the OEIS</a>
%H Omar Pol, <a href="http://www.polprimos.com/imagenespub/poltp406.jpg">Illustration of initial terms</a>
%F A139250(n) = 2a(n) + 2a(n+1) - 4n - 1 for n>0. - _N. J. A. Sloane_, May 25 2009
%F Let G = (x + 2*x^2 + 4*x^2*(1+x)*(mul(1+x^(2^k-1)+2*x^(2^k),k=1..oo)-1)/(1+2*x))/(1-x) (= g.f. for A139250); then the g.f. for the present sequence is (G + 2 + x*(5-x)/(1-x)^2)*x/(2*(1+x)). - _N. J. A. Sloane_, May 25 2009
%p G := (x + 2*x^2 + 4*x^2*(1+x)*(mul(1+x^(2^k-1)+2*x^(2^k),k=1..20)-1)/(1+2*x))/(1-x); P:=(G + 2 + x*(5-x)/(1-x)^2)*x/(2*(1+x)); series(P,x,200); seriestolist(%); - _N. J. A. Sloane_, May 25 2009
%Y Cf. A139250, A139251, A153000, A153006, A152980, A160407, A160408, A160409.
%Y Cf. A170886-A170895.
%A _Omar E. Pol_, May 23 2009
%E More terms from _N. J. A. Sloane_, May 25 2009
%E Definition revised by _N. J. A. Sloane_, Jan 02 2010