A378108 Primes p such that neither p-1 nor p+1 are in A126706.
2, 3, 5, 7, 31, 257, 131071, 618970019642690137449562111, 162259276829213363391578010288127
Offset: 1
Examples
17 = 2^4+1 is not in the sequence since 18 = 2 * 3^2. 31 = 2^5-1 is in the sequence since 30 = 2*3*5 is squarefree. 127 = 2^7-1 is not in the sequence because 126 = 2 * 3^2 * 7. 257 = 2^8+1 is in the sequence since 258 = 2*3*43 is squarefree. 8191 = 2^13-1 is not in the sequence because 8190 = 2 * 3^2 * 5 * 7 * 13. 65537 = 2^16+1 is not in the sequence since 65538 = 2 * 3^2 * ll * 331. 131071 = 2^17-1 is in the sequence since 131070 = 2 * 3 * 5 * 17 * 257, etc
Programs
-
Mathematica
Reap[Do[Which[ And[PrimeQ[# + 1], SquareFreeQ[(# + 2)/6]], Sow[# + 1], And[PrimeQ[# - 1], SquareFreeQ[(# - 2)/6]], Sow[# - 1] ] &[2^i], {i, 0, 650}] ][[-1, 1]]
Comments