OFFSET
0,3
COMMENTS
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..9999 (terms 0..4999 from Carole Dubois)
N. J. A. Sloane, Catalog of Toothpick and Cellular Automata Sequences in the OEIS
EXAMPLE
Consider the illustration of the nodes in structure of A211000:
-----------------------------------------------------
After 9 stages After 10 stages After 11 stages
-----------------------------------------------------
.
. 1 1 1
. 0 2 0 2 0 2
. 3 3 3
. 4 4 4
. 5 5 5
. 6 6 6
. 7 7 11
. 8 10 8 10 8
. 9 9 9
.
----------------------------------------------------
We can see that:
a(9) = 0+1+2+3+4+5+6+7+8+9 = a(8)+9 = 45
a(10) = 0+1+2+3+4+5+6+7+8+9+10 = a(9)+10 = 55
a(11) = 0+1+2+3+4+5+6+8+9+10+11 = a(10)-7+11 = 59
MATHEMATICA
A211024[nmax_]:=Module[{ep={0, 0}, node=Association[], angle=3/4Pi, turn=Pi/2}, Join[{0}, Table[If[!PrimeQ[n], If[n>5&&PrimeQ[n-1], turn*=-1]; angle-=turn]; ep=AngleVector[ep, {Sqrt[2], angle}]; node[ep]=n+1; Total[node], {n, 0, nmax-1}]]];
A211024[100] (* Paolo Xausa, Jan 16 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Apr 14 2012
STATUS
approved