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

 


Smallest integer m such that m is a product of 2n-1 consecutive primes and a sum of 2n-1 consecutive primes.
0

%I #10 Mar 14 2023 09:26:50

%S 2,33263,2775683761181,52139749485151463,

%T 31359251876786281892441299570699,2385018819218440287149,

%U 23509572623777698757692123744388316389653416929069870587,436178570920976645136650311902311012102337977560516289614008518576769313,166345108784858794943225366868487068031523855419640057875257310044811

%N Smallest integer m such that m is a product of 2n-1 consecutive primes and a sum of 2n-1 consecutive primes.

%C n=1: m = 2 (trivial case: product and sum of single prime, 2);

%C n=2: m = 33263 = product{29, 31, 37} = sum{11083, 11087, 11093};

%C n=3: m = 2775683761181 = product({293, 307, 311, 313, 317}) = sum({555136752211, 555136752221, 555136752227, 555136752251, 555136752271});

%C n=4: m = 52139749485151463=product({229, 233, 239, 241, 251, 257, 263})= sum({7448535640735789, 7448535640735843, 7448535640735867, 7448535640735877, 7448535640735991, 7448535640736009, 7448535640736087});

%C n=5: m = 31359251876786281892441299570699 = product({3119, 3121, 3137, 3163, 3167, 3169, 3181, 3187, 3191}) = sum({3484361319642920210271255507593, 3484361319642920210271255507619, 3484361319642920210271255507719, 3484361319642920210271255507767, 3484361319642920210271255507923, 3484361319642920210271255507937, 3484361319642920210271255507941, 3484361319642920210271255508067, 3484361319642920210271255508133});

%C n=6: m = 2385018819218440287149 = product({67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109}) = sum({216819892656221844131, 216819892656221844133, 216819892656221844139, 216819892656221844169, 216819892656221844307, 216819892656221844331, 216819892656221844347, 216819892656221844373, 216819892656221844397, 216819892656221844401, 216819892656221844421}).

%p scp:= proc(x,n) local P,i,s;

%p P:= Vector(n);

%p P[1]:= nextprime(ceil(x/n));

%p for i from 2 to n do P[i]:= nextprime(P[i-1]) od;

%p s:= convert(P,`+`);

%p while s > x do

%p s:= s - P[n];

%p P[2..n]:= P[1..n-1];

%p if P[2] = 2 then return false fi;

%p P[1]:= prevprime(P[2]);

%p s:= s + P[1];

%p od;

%p evalb(s=x)

%p end proc:

%p f:= proc(n) local i,P,r;

%p P:= <seq(ithprime(i),i=1..2*n-1)>;

%p r:= convert(P,`*`);

%p while not scp(r,2*n-1) do

%p r:= r/P[1];

%p P[1..2*n-2]:= P[2..2*n-1];

%p P[2*n-1]:= nextprime(P[2*n-2]);

%p r:= r*P[2*n-1];

%p od;

%p end proc:

%p f(1):= 2:

%p map(f, [$1..8]); # _Robert Israel_, Mar 13 2023

%Y Cf. A203619.

%K nonn

%O 1,1

%A _Zak Seidov_, Feb 13 2012

%E a(7)-a(9) from _Robert Israel_, Mar 13 2023

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | 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 September 23 22:43 EDT 2024. Contains 376185 sequences. (Running on oeis4.)