login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A364029 Odd squarefree semiprimes s = p*q such that (p + q)/2 and (p - q)/2 are squarefree. 1

%I #14 Jun 04 2024 07:39:48

%S 21,35,51,69,85,91,93,123,133,187,213,219,221,235,237,253,259,267,339,

%T 341,355,365,371,381,395,411,413,437,445,451,453,469,485,493,501,573,

%U 611,635,667,669,685,699,723,731,755,763,771,779,781,789,803,813,843,851,893,899

%N Odd squarefree semiprimes s = p*q such that (p + q)/2 and (p - q)/2 are squarefree.

%H Robert Israel, <a href="/A364029/b364029.txt">Table of n, a(n) for n = 1..10000</a>

%p filter:= proc(n) local F,p,q;

%p F:= ifactors(n)[2];

%p if nops(F) <> 2 or F[1,2] <> 1 or F[2,2] <> 1 then return false fi;

%p p:= F[1,1]; q:= F[2,1];

%p numtheory:-issqrfree((p+q)/2) and numtheory:-issqrfree(abs(p-q)/2)

%p end proc:

%p select(filter, [seq(i,i=1..1000,2)]); # _Robert Israel_, Dec 12 2023

%t okQ[n_] := MatchQ[FactorInteger[n], {{p_, 1}, {q_, 1}} /; SquareFreeQ[(p + q)/2] && SquareFreeQ[(q - p)/2]];

%t Select[Range[1, 1000, 2], okQ] (* _Jean-François Alcover_, Jun 04 2024 *)

%o (PARI) forstep (k = 15, 900, 2, if (omega(k)==2 && bigomega(k)==2, my (F=factorint(k)); if ( issquarefree((F[2, 1]-F[1, 1])/2) && issquarefree((F[2, 1]+F[1, 1])/2), print1(k, ", "))))

%Y Cf. A046388, A198512, A364028.

%K nonn

%O 1,1

%A _Hugo Pfoertner_, Jul 01 2023

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 24 15:34 EDT 2024. Contains 374584 sequences. (Running on oeis4.)