A240475 Primes that are midway between the closest flanking squarefree numbers.
2, 17, 19, 53, 89, 163, 197, 199, 233, 251, 269, 271, 293, 307, 337, 379, 449, 487, 491, 521, 557, 593, 631, 701, 739, 751, 809, 811, 881, 883, 919, 953, 991, 1013, 1049, 1061, 1063, 1097, 1151, 1171, 1279, 1459, 1471, 1493, 1531, 1549, 1567, 1601, 1637
Offset: 1
Keywords
Examples
19 is a term because it is midway between the closest flanking squarefree numbers 17 and 21. On the other hand, 29 is not a term because it is not midway between the closest flanking squarefree numbers 26 and 30.
Links
- Chris Boyd, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
Select[Mean/@Partition[Select[Range[2000],SquareFreeQ],3,1],PrimeQ] (* Harvey P. Dale, Jul 27 2024 *)
-
PARI
forprime(p=1,1650,forstep(j=p-1,1,-1,if(issquarefree(j),L=j;break));for(j=p+1,2*p,if(issquarefree(j),G=j;break));if(G-p==p-L,print1(p", ")))
Comments