A344482 Primes, each occurring twice, such that a(C(n)) = a(4*n-C(n)) = prime(n), where C is the Connell sequence (A001614).
2, 3, 2, 5, 7, 3, 11, 5, 13, 17, 7, 19, 11, 23, 13, 29, 31, 17, 37, 19, 41, 23, 43, 29, 47, 53, 31, 59, 37, 61, 41, 67, 43, 71, 47, 73, 79, 53, 83, 59, 89, 61, 97, 67, 101, 71, 103, 73, 107, 109, 79, 113, 83, 127, 89, 131, 97, 137, 101, 139, 103, 149, 107, 151
Offset: 1
Examples
Written as an irregular triangle the sequence begins: 2; 3, 2, 5; 7, 3, 11, 5, 13; 17, 7, 19, 11, 23, 13, 29; 31, 17, 37, 19, 41, 23, 43, 29, 47; 53, 31, 59, 37, 61, 41, 67, 43, 71, 47, 73; 79, 53, 83, 59, 89, 61, 97, 67, 101, 71, 103, 73, 107; ... The triangle can be arranged as shown below so that, in every row, each odd position term is equal to the term immediately below it. 2 3 2 5 7 3 11 5 13 17 7 19 11 23 13 29 31 17 37 19 41 23 43 29 47 ...
Crossrefs
Programs
-
Mathematica
nterms=64;a=ConstantArray[0,nterms];For[n=1;p=1,n<=nterms,n++,If[a[[n]]==0,a[[n]]=Prime[p];If[(d=4p-n)<=nterms,a[[d]]=a[[n]]];p++]]; a (* Second program, triangle rows *) nrows=8;Table[rlen=2r-1;Permute[Prime[Range[s=1+(r-1)(r-2)/2,s+rlen-1]],Join[Range[2,rlen,2],Range[1,rlen,2]]],{r,nrows}]
Comments