OFFSET
1,2
COMMENTS
a(n) is the least k such that A228098(k) = n.
EXAMPLE
a(4) = 30 as there are exactly 4 primes between prime(30) + 1 = 114 and floor(prime(31)^2/prime(30)) = 142 namely the four primes 127, 131, 137 and 139.
PROG
(PARI) upto(n) = {my(i, p, q, res = vector(1)); i = 1; p = 2; forprime(q = 3, oo, u = q^2\p; t = 1; forprime(r = q + 1, u, t++); if(t > #res, res = concat(res, vector(t - #res))); if(res[t] == 0, res[t] = i; ); p = q; i++; if(i > n, return(res))); }
CROSSREFS
KEYWORD
nonn
AUTHOR
David A. Corneth, May 24 2021
EXTENSIONS
a(24)-a(32) from Martin Ehrenstein, Jun 02 2021
STATUS
approved