A211112 a(n) is the smallest pseudoprime q in A074773 such that f(q) = n, where f: N -> {1..63} is given below.
39365185894561, 52657210792621, 11377272352951, 15070413782971, 3343433905957, 16603327018981, 3461715915661, 52384617784801, 3477707481751, 18996486073489, 55712149574381, 118670087467
Offset: 1
Examples
Because f(A074773(15)) = 5, a(5) = A074773(15).
Links
- Washington Bomfim, A.txt
- C. Pomerance, J. L. Selfridge, and S. S. Wagstaff, Jr., The pseudoprimes to 25*10^9, Mathematics of Computation 35 (1980), pp. 1003-1026.
- Wikipedia, Miller-Rabin primality test
Programs
-
PARI
f(x)={ f1=x % 20650997 % 63; f2=x % 13936751 % 63; v1=3521775543809890147; v2 = 1700305497776372630; v3 = 4844350019353692337; h1=(f1<=20)*((v1>>(3*f1))%8)+(f1>=42)*((v3>>(3*(f1-42)))%8)+(f1>20&&f1<42)*((v2>>(3*(f1-21)))%8); h2=(f2<=20)*((v1>>(3*f2))%8)+(f2>=42)*((v3>>(3*(f2-42)))%8)+(f2>20&&f2<42)*((v2>>(3*(f2-21)))%8); y = (h1==h2)*f2 + (h1>h2)*f1+(h2>h1)*f2 + 1; return (y);}; \\ s=Str(read("C:/temp/A074773.txt" )); x=Vec(s);n=0;k=0;j=0;i=1;p=vector(63); y=0; for(n=1,63,k=i+2;s="";for(j=1,eval(concat(x[i],x[i+1])),s=concat(s,x[k]);k++); p[n]=eval(s);i=k); a=vector(63); for(i=1,63, y =f(p[i]); a[y]=p[i]); for(i=1,63, print(i," ",a[i]));
Extensions
Edited by M. F. Hasler, Dec 09 2016 and Dec 17 2016
Comments