OFFSET
1,1
COMMENTS
Since the geometric mean is never greater than the arithmetic mean: A381850 is a subsequence.
FORMULA
Conjecture: Limit_{n->oo} n / PrimePi(a(n)) = 0.720268...
EXAMPLE
17 is a term because (17-13)*(19-17)=8 is less than (log(17))^2=8.0271.
19 is a term because (19-17)*(23-19)=8 is less than (log(19))^2=8.6697.
29 is not a term because(29-23)*(31-29)=12 is greater than (log(29))^2=11.3387.
MATHEMATICA
Select[Range[2, 110] // Prime, (# - NextPrime[#, -1])(NextPrime[#] - #) < Log[#]^2 &] (* Stefano Spezia, May 04 2025 *)
PROG
(PARI) forprime(P=3, 600, my(M=P-precprime(P-1), Q=nextprime(P+1)-P, AR=M*Q, AR0=(log(P))^2); if(AR<AR0, print1(P, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Alain Rocchelli, May 04 2025
STATUS
approved
