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!)
A294776 Squarefree products of k primes that are symmetrically distributed around their average. Case k = 6. 4

%I #15 May 20 2019 02:44:45

%S 1616615,3411705,7436429,9408035,10163195,12838371,13037385,13844919,

%T 14969435,19605131,20414121,23783045,24997749,25113935,27568145,

%U 30478565,31473255,32518535,33999455,39946569,43134015,46115135,48215255,50907855,56179409,61558343

%N Squarefree products of k primes that are symmetrically distributed around their average. Case k = 6.

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

%p with(numtheory): P:=proc(q,h) local a,b,k,n,ok;

%p for n from 2*3*5*7*11*13 to q do if not isprime(n) and issqrfree(n) then a:=ifactors(n)[2];

%p if nops(a)=h then b:=2*add(a[k][1],k=1..nops(a))/nops(a); ok:=1;

%p for k from 1 to trunc(nops(a)/2) do if a[k][1]+a[nops(a)-k+1][1]<>b then ok:=0; break; fi; od; if ok=1 then print(n); fi; fi; fi; od; end: P(10^9,6);

%p # Alternative:

%p N:= 10^8: # to get all terms <= N

%p M:= floor(fsolve(3*5*7*(M-7)*(M-5)*(M-3) = N)):

%p P:= select(isprime, [seq(i,i=3..M/2,2)]): nP:= nops(P):

%p Res:= NULL:

%p for m from 10 by 2 to M do

%p for ix from 1 to nP-2 do

%p x:= P[ix];

%p if x >= m/2 or (x*(m-x))^3 >= N then break fi;

%p if not isprime(m-x) then next fi;

%p for iy from ix+1 to nP-1 do

%p y:= P[iy];

%p if y >= m/2 or x*(m-x)*(y*(m-y))^2 >= N then break fi;

%p if not isprime(m-y) then next fi;

%p for iz from iy+1 to nP do

%p z:= P[iz];

%p if z >= m/2 then break fi;

%p v:= x*(m-x)*y*(m-y)*z*(m-z);

%p if v > N then break fi;

%p if isprime(m-z) then Res:= Res, v fi;

%p od od od od:

%p sort([Res]); # _Robert Israel_, May 19 2019

%o (PARI) isok(n, nb=6) = {if (issquarefree(n) && (omega(n)==nb), f = factor(n)[, 1]~; avg = vecsum(f)/#f; for (k=1, #f\2, if (f[k] + f[#f-k+1] != 2*avg, return(0));); return (1););} \\ _Michel Marcus_, Nov 10 2017

%Y Subsequence of A067885.

%Y Cf. A006881 (k=2), A262723 (k=3), A294751 (k=4), A294752 (k=5).

%K nonn

%O 1,1

%A _Paolo P. Lava_, Nov 09 2017

%E More terms from _Giovanni Resta_, Nov 09 2017

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 April 23 22:36 EDT 2024. Contains 371917 sequences. (Running on oeis4.)