A093514 Transform of the prime sequence by the Rule90 cellular automaton.
2, 3, 4, 9, 11, 15, 17, 21, 23, 25, 29, 33, 37, 39, 41, 45, 47, 49, 53, 55, 59, 63, 67, 69, 71, 75, 79, 81, 83, 85, 89, 91, 97, 99, 101, 105, 107, 111, 113, 115, 127, 129, 131, 133, 137, 141, 149, 153, 157, 159, 163, 165, 167, 169, 173, 175, 179, 183, 191, 195, 197, 201
Offset: 1
Links
- Ferenc Adorjan, Binary mapping of monotonic sequences - the Aronson and the CA functions
- Eric Weisstein's World of Mathematics, Elementary Cellular Automaton
Crossrefs
Programs
-
PARI
{ca_tr(ca,v)= /* Calculates the Cellular Automaton transform of the vector v by the rule ca */ local(cav=vector(8),a,r=[],i,j,k,l,po,p=vector(3)); a=binary(min(255,ca));k=matsize(a)[2];forstep(i=k,1,- 1,cav[k-i+1]=a[i]); j=0;l=matsize(v)[2];k=v[l];po=1; for(i=1,k+2,j*=2;po=isin(i,v,l,po);j=(j+max(0,sign(po)))% 8;if(cav[j+1],r=concat(r,i))); return(r) /* See the function "isin" at A092875 */}
Comments