OFFSET
1,1
COMMENTS
a(k) = 2*p*q-2*q*r+r*s where p = A341934(k) and p,q,r,s are consecutive primes.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 167 because A341934(5) = 11 and (p,q,r,s)=(11,13,17,19) are consecutive primes with 2*p*q-2*q*r+r*s = 167.
MAPLE
P:= select(isprime, [2, seq(i, i=3..10000, 2)]):
B:= select(i -> isprime(P[i+2]*P[i+3]-2*P[i+1]*(P[i+2]-P[i])), [$1..nops(P)-3]):
seq(P[i+2]*P[i+3]-2*P[i+1]*(P[i+2]-P[i]), i = B);
MATHEMATICA
Select[2#[[1]]#[[2]]-2#[[2]]#[[3]]+#[[3]]#[[4]]&/@Partition[Prime[Range[200]], 4, 1], PrimeQ] (* Harvey P. Dale, Oct 29 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Feb 23 2021
STATUS
approved