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 A187216 #18 Feb 24 2021 02:48:19 %S A187216 0,2,8,16,30,52,82,104,142,196,266,288,326,380,450,504,606,756,890, %T A187216 912,950,1004,1074,1128,1230,1380,1514,1568,1670,1820,1986,2168,2494, %U A187216 2900,3162,3184,3222,3276,3346,3400,3502,3652,3786,3840,3942,4092,4258,4440 %N A187216 Q-toothpick sequence starting with two opposite Q-toothpicks centered at the same grid point. %C A187216 The sequence gives the number of Q-toothpicks in the structure after n-th stage. %C A187216 A187217 (the first differences) gives the number of Q-toothpicks added at n-th stage. %C A187216 Note that in the Q-toothpick structure sometimes there is also an internal growth of Q-toothpicks. %C A187216 For more information see A187210. %H A187216 Nathaniel Johnston, <a href="/A187216/b187216.txt">Table of n, a(n) for n = 0..200</a> %H A187216 Nathaniel Johnston, <a href="/A187216/a187216.c.txt">C program for computing terms</a> %H A187216 David Applegate, Omar E. Pol and N. J. A. Sloane, <a href="/A000695/a000695_1.pdf">The Toothpick Sequence and Other Sequences from Cellular Automata</a>, Congressus Numerantium, Vol. 206 (2010), 157-191. [There is a typo in Theorem 6: (13) should read u(n) = 4.3^(wt(n-1)-1) for n >= 2.] %H A187216 Nathaniel Johnston, <a href="http://www.nathanieljohnston.com/2011/03/the-q-toothpick-cellular-automaton/">The Q-Toothpick Cellular Automaton</a> %H A187216 N. J. A. Sloane, <a href="/wiki/Catalog_of_Toothpick_and_CA_Sequences_in_OEIS">Catalog of Toothpick and Cellular Automata Sequences in the OEIS</a> %e A187216 On the infinite square grid at stage 0 we start with no Q-toothpicks. %e A187216 At stage 1 we place two opposite Q-toothpicks centered at (0,0). One of the Q-toothpicks lies on the first quadrant with its endpoints at (0,1) and (1,0). The other Q-toothpick lies on the third quadrant with its endpoints at (0,-1) and (-1,0). So a(1) = 2. There are 4 exposed endpoints. %e A187216 At stage 2 we place 6 Q-toothpicks, so a(2) = 2+6 = 8. %e A187216 At stage 3 we place 8 Q-toothpicks, so a(3) = 8+8 = 16. %e A187216 At stage 4 we place 14 Q-toothpicks, so a(4) = 16+14 = 30. %e A187216 After 4 stages in the Q-toothpick structure there are 1 circle, 2 "heads" and 12 exposed endpoints. %Y A187216 Cf. A139250, A160120, A160164, A187210, A187212, A187217, A187220. %K A187216 nonn %O A187216 0,2 %A A187216 _Omar E. Pol_, Mar 30 2011 %E A187216 a(15) - a(47) from _Nathaniel Johnston_, Apr 15 2011