cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A268614 Primes p such that p + 1 and p + 2 are squarefree.

This page as a plain text file.
%I A268614 #16 Sep 08 2022 08:46:15
%S A268614 5,13,29,37,41,101,109,113,137,157,181,193,229,257,281,317,353,389,
%T A268614 397,401,409,433,461,509,541,569,613,617,641,653,661,677,757,761,769,
%U A268614 797,821,829,857,877,937,941,977,1009,1021,1093,1109,1117,1129,1153,1193
%N A268614 Primes p such that p + 1 and p + 2 are squarefree.
%C A268614 All terms are == 1 mod 4, hence in all cases p+3 is divisible by 4 (and is not squarefree).
%H A268614 Amiram Eldar, <a href="/A268614/b268614.txt">Table of n, a(n) for n = 1..10000</a>
%t A268614 Select[Prime[Range[1000]], SquareFreeQ[# + 1] && SquareFreeQ[# + 2] &]
%o A268614 (Magma) [p: p in PrimesUpTo(1500) | IsSquarefree(p+1) and IsSquarefree(p+2)]; // _Vincenzo Librandi_, Feb 09 2016
%o A268614 (PARI) isok(p) = isprime(p) && issquarefree(p+1) && issquarefree(p+2); \\ _Michel Marcus_, Apr 01 2021
%Y A268614 Intersection of A049097 and A049233.
%Y A268614 Cf. A002144, A005117.
%K A268614 nonn
%O A268614 1,1
%A A268614 _Zak Seidov_, Feb 08 2016