OFFSET
2,1
COMMENTS
The offset is 2 because it is impossible for the sum and difference of primes to both be prime.
LINKS
Robert Israel, Table of n, a(n) for n = 2..1000
FORMULA
a(n) = 2^(n-2) * 5 * 67 for all n >= 8, the next number with n prime divisors being 2^(n-2) * 3 * 113.
Proof:
k, m, k + m and m - k all have n prime divisors iff 2*k, 2*m, 2*k + 2*m and 2*m - 2*k all have n+1 prime divisor. 2*m is the next number after 2*k with n+1 prime divisors iff m is the next number after k with n prime divisors and between 2*k and 2*m there are no odd numbers with n+1 prime divisors. But the smallest odd number with n+1 prime divisors is 3^(n+1), and 3^(n+1) > 2^(n-1) * 3 * 113 for n >= 10. To complete the proof, we verify computationally the claim for n = 8, 9 and 10.
EXAMPLE
a(3) = 130 because 130 = 2 * 5 * 13 is a triprime, the next triprime is 138 = 2 * 3 * 23, and 130 + 138 = 268 = 2^2 * 67 and 138 - 130 = 8 are triprimes, and this is the first triprime that works.
MAPLE
with(priqueue);
f:= proc(n) local M, a, b, v, q, w;
M:= 10^1000:
a:= 2^n:
initialize(Aprimes);
insert([-2^n, 0, 2], Aprimes);
do
v:= extract(Aprimes);
if v[2] = n then
b:= -v[1];
if numtheory:-bigomega(b-a) = n and numtheory:-bigomega(b+a)= n then return a
fi;
a:= b;
else
insert(v+[0, 1, 0], Aprimes);
q:= nextprime(v[3]);
w:= v[1]*(q/v[3])^(n-v[2]);
if w >= -M then insert([w, v[2], q], Aprimes) fi
fi
od:
end proc:
map(f, [$2..60]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert Israel, Sep 19 2023
STATUS
approved