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.

A049229 Primes p such that p-2 is not squarefree.

This page as a plain text file.
%I A049229 #25 Aug 10 2024 22:33:48
%S A049229 11,29,47,83,101,127,137,149,173,191,227,263,277,281,317,353,389,443,
%T A049229 461,479,509,541,569,577,587,607,641,659,677,727,821,827,839,857,877,
%U A049229 911,929,947,977,983,1019,1031,1091,1109,1129,1163,1181,1217,1277,1289
%N A049229 Primes p such that p-2 is not squarefree.
%C A049229 This sequence is infinite and its relative density in the sequence of the primes is equal to 1 - 2 * Product_{p prime} (1-1/(p*(p-1))) = 1 - 2 * A005596 = 0.252088... - _Amiram Eldar_, Feb 27 2021
%H A049229 Harvey P. Dale, <a href="/A049229/b049229.txt">Table of n, a(n) for n = 1..1000</a>
%t A049229 Select[Prime[Range[2,300]],!SquareFreeQ[#-2]&] (* _Harvey P. Dale_, Nov 14 2012 *)
%o A049229 (PARI) isok(p) = (p>2) && isprime(p) && !issquarefree(p-2); \\ _Michel Marcus_, May 14 2018
%Y A049229 Cf. A005596, A013929, A049231, A049232.
%K A049229 nonn
%O A049229 1,1
%A A049229 _Labos Elemer_