OFFSET
1,1
COMMENTS
If a,b,c are distinct composites and d > 1 such that (a*b*c-1)*d and a+b+c are coprime, then by Dirichlet's theorem there are infinitely many terms of the form a*b*c*d*x - (a + b + c + d*x). For example, with a=4, b=6, c=9, d=2, the sequence includes all primes == 411 (mod 430).
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4) = 4*6*10*21 - (4+6+10+21) = 4999.
The first term expressible in more than one way is a(16) = 6*8*12*15 - (6+8+12+15) = 6*9*10*16 - (6+9+10+16).
MAPLE
N:= 15000: # for terms <= N
R:= {}:
for i from 4 while i^4 - 4*i < N do
if isprime(i) then next fi;
for j from i+1 while i * j^3 - i - 3*j < N do
if isprime(j) then next fi;
for k from j+1 while i*j*k^2 - i-j-2*k < N do
if isprime(k) then next fi;
for l from k+1 do
v:= i*j*k*l-(i+j+k+l);
if v > N then break fi;
if not isprime(l) and isprime(v) then R:= R union {v} fi
od od od od:
sort(convert(R, list));
CROSSREFS
KEYWORD
nonn
AUTHOR
Will Gosnell and Robert Israel, Dec 11 2025
STATUS
approved
