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.

A089201 Primes p such that p-3 and p+3 are divisible by a cube.

This page as a plain text file.
%I A089201 #21 Mar 27 2021 07:59:59
%S A089201 683,1747,2659,3253,4253,4397,7253,7549,8747,9829,10253,12253,13037,
%T A089201 14747,16253,16747,17747,18253,18637,19891,20747,21269,23747,25253,
%U A089201 25747,27253,28123,29501,30253,31253,34253,34603,34747,35747,37253
%N A089201 Primes p such that p-3 and p+3 are divisible by a cube.
%H A089201 Amiram Eldar, <a href="/A089201/b089201.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..330 from R. J. Mathar)
%F A089201 {p in A000040: p+3 in A046099 and p-3 in A046099}. - _R. J. Mathar_, Dec 08 2015
%e A089201 683-3=2^3*5*17,683+3=2*7^3.
%p A089201 isA089201 := proc(n)
%p A089201     if isprime(n) then
%p A089201         isA046099(n-3) and isA046099(n+3) ;
%p A089201     else
%p A089201         false;
%p A089201     end if;
%p A089201 end proc: # _R. J. Mathar_, Dec 08 2015
%t A089201 Select[Prime[Range[4000]],Max[Transpose[FactorInteger[#-3]][[2]]]>2 && Max[ Transpose[FactorInteger[#+3]][[2]]]>2&] (* _Harvey P. Dale_, Jan 26 2013 *)
%o A089201 (PARI) powerfreep4(n,p,k) = { c=0; pc=0; forprime(x=2,n, pc++; if(!ispowerfree(x-k,p) && !ispowerfree(x+k,p), c++; print1(x","); ) ); print(); print(c","pc","c/pc+.0) }
%o A089201 ispowerfree(m,p1) = { flag=1; y=component(factor(m),2); for(i=1,length(y), if(y[i] >= p1,flag=0;break); ); return(flag) }
%Y A089201 Cf. A046099.
%K A089201 easy,nonn
%O A089201 1,1
%A A089201 _Cino Hilliard_, Dec 08 2003