OFFSET
1,1
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..3406
David Applegate, Omar E. Pol and N. J. A. Sloane, The Toothpick Sequence and Other Sequences from Cellular Automata, 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.]
N. J. A. Sloane, Catalog of Toothpick and Cellular Automata Sequences in the OEIS
MATHEMATICA
m = 200 (* number of gullwing terms *); s = (2*(x/((1-x)*(1 + 2*x))))*(1 + 2*x*Product[1 + x^(2^k-1) + 2*x^2^k, {k, 0, Ceiling[Log[2, m]]}]) + O[x]^(m-1); Select[CoefficientList[s, x] + 1, PrimeQ] (* Jean-François Alcover, Jul 23 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Mar 09 2011, Mar 10 2011
EXTENSIONS
More terms from Nathaniel Johnston, Mar 22 2011
STATUS
approved